Wrong Answer
Code
#include <iostream>
#define ll long long
using namespace std;
int main()
{
int t;
cin >> t;
while (t--) {
int n, m, k;
cin >> n >> m >> k;
int maxio = 0;
ll count = 0;
if (n % 2 != 0)
maxio = max(maxio, n);
else
count += 1LL * n;
if (m % 2 != 0)
maxio = max(maxio, m);
else
count += 1LL * m;
if (k % 2 != 0)
maxio = max(maxio, k);
else
count += 1LL * k;
count += 1LL*maxio;
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:01:32
- Judged At
- 2025-06-13 16:01:32
- Judged By
- Score
- 0
- Total Time
- 289ms
- Peak Memory
- 1.566 MiB