Accepted
Code
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=0;i<t;i++){
long long int a,b,c;
cin>>a>>b>>c;
long long int pair=(a/2)+(b/2)+(c/2);
long long int count=pair*2;
if(a%2==1 || b%2==1 || c%2==1){
count++;
}
cout << count << endl;
}
return 0;
}
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:09:13
- Judged At
- 2025-06-13 16:09:13
- Judged By
- Score
- 100
- Total Time
- 350ms
- Peak Memory
- 1.578 MiB