Accepted
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