Accepted
Code
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
void solve(){
ll n, m, k; cin >> n >> m >> k;
ll ans = 2*(n/2 + m/2 + k/2);
if (n & 1 || m & 1 || k & 1) ans++;
cout << ans << '\n';
}
int main(){ll t; cin >> t; while (t--) solve();}
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:35:50
- Judged At
- 2025-06-13 15:35:50
- Judged By
- Score
- 100
- Total Time
- 301ms
- Peak Memory
- 1.527 MiB