Accepted
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll tc; cin>>tc;
while(tc--){
ll a,b,c;
cin>>a>>b>>c;
ll ct=0;
if(a%2) ct++;
if(b%2) ct++;
if(c%2) ct++;
ct--;
cout<<a+b+c-max(0ll,ct)<<endl;}
}
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:03:10
- Judged At
- 2025-06-13 16:03:10
- Judged By
- Score
- 100
- Total Time
- 297ms
- Peak Memory
- 1.535 MiB