/ SeriousOJ /

Record Detail

Accepted


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

Code

#include<bits/stdc++.h>
using namespace std;

#define int long long

#ifdef DEBUG
#include<algo/debug.h>
#include<algo/resources.h>
#else
#   define clog if (0) cerr
#   define DB(...)
#   define db(...) "" 
#endif

const int M = 1e9 + 7;
const int N = 2e5 + 10;


int32_t main(){
  int a, b, c;
  cin >> a >> b >> c;
  if(a % 2 != b % 2 and a % 2!= c % 2)cout << a << endl;
  if(b % 2 != c % 2 and b % 2!= a % 2)cout << b << endl;
  if(c % 2 != a % 2 and c % 2!= b % 2)cout << c << 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 15:48:46
Judged At
2025-09-02 15:48:46
Judged By
Score
100
Total Time
4ms
Peak Memory
532.0 KiB