/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 536.0 KiB
#2 Accepted 29ms 996.0 KiB
#3 Wrong Answer 36ms 1.574 MiB

Code

#include<bits/stdc++.h>
using namespace std;

#define Alhamdulillah ios_base::sync_with_stdio(0), cin.tie(0);
#define ll long long
#define ull unsigned long long
#define endl '\n'
#define db(i) cout << "c -> " << i << endl;
#define pv(v) for(auto e : v)   cout << e << " ";   cout << endl;
#define pm(m) for(auto [x,y] : m)   cout << x << " " << y << endl;   cout << endl;

void solve(){
    int z,o,t,ct = 0;  cin >> z >> o >> t;
    ct += ((z/2*2) + (o/2*2) + (t/2*2));
    if(z%2 || o%2 || t%2)  ++ct;
    cout << ct << endl;
}

int main(){
    Alhamdulillah
    int t=1;    cin >> t;
    while(t--)  solve();
    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 15:44:03
Judged At
2025-06-13 15:44:03
Judged By
Score
50
Total Time
36ms
Peak Memory
1.574 MiB