Accepted
Code
#include <iostream>
using namespace std;
int main() {
int X, Y, Z;
cin >> X >> Y >> Z;
if (X % 2 != Y % 2 && X % 2 != Z % 2) {
cout << X << endl;
} else if (Y % 2 != X % 2 && Y % 2 != Z % 2) {
cout << Y << endl;
} else {
cout << Z << endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-09-01 07:31:44
- Judged At
- 2025-09-01 07:31:44
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB