Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
int n,m,k;
cin >> n >> m >> k;
int ans = n-n%2 + m-m%2 + k-k%2;
if (n%2 + m%2 + k%2 >= 1)
ans++;
cout << ans << '\n';
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1195 B. Palindrome
- Contest
- Brain Booster #10
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-13 16:53:17
- Judged At
- 2025-06-13 16:53:17
- Judged By
- Score
- 50
- Total Time
- 206ms
- Peak Memory
- 1.746 MiB