Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
long long n,m,k;
cin >> n >> m >> k;
long long 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:39
- Judged At
- 2025-06-13 16:53:39
- Judged By
- Score
- 100
- Total Time
- 309ms
- Peak Memory
- 1.52 MiB