/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 444.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 532.0 KiB

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