Accepted
Code
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
signed main() {
ios_base::sync_with_stdio(0); cin.tie(0);
ll a, b, c; cin >> a >> b >> c;
if ((a+b) % 2 == 0) cout << c;
else if ((b+c) % 2 == 0) cout << a;
else cout << b;
}
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 15:37:36
- Judged At
- 2025-09-02 15:38:57
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB