Accepted
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int x,y,z,cnt=0;
cin>>x>>y>>z;
int a=x%2,b=y%2,c=z%2;
if(a==b)cout<<z<<endl;;
if(b==c)cout<<x<<endl;;
if(c==a)cout<<y<<endl;
// cout<<cnt<<endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Intra LU Junior Programming Contest - Replay
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-02 16:55:46
- Judged At
- 2025-09-02 16:55:46
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 536.0 KiB