/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 13ms 3.117 MiB
#2 Accepted 14ms 2.926 MiB
#3 Accepted 14ms 3.094 MiB
#4 Accepted 14ms 2.988 MiB

Code

x,y,z=map(int,input().split())
if(((x%2==0) and (y%2==0) and (z%2!=0)) or ((x%2!=0) and(y%2!=0) and (z%2==0))):
    print(z)
elif(((x%2==0) and (z%2==0) and (y!=0)) or ((x%2!=0) and(z%2!=0) and (y%2==0))):
    print(y)
else:
    print(x)
    

Information

Submit By
Type
Submission
Problem
P1232 Parity
Contest
LUCC Presents Kick & Code Intra LU Programming Contest
Language
Python 3 (Python 3.12.3)
Submit At
2025-09-01 05:32:12
Judged At
2025-09-01 05:32:12
Judged By
Score
100
Total Time
14ms
Peak Memory
3.117 MiB