Please sign in first.
Submission #23087363
Source Code Expand
#include <bits/stdc++.h>
//#include <atcoder/all>
#define endl "\n"
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
template<class T>
inline bool chmin(T &a, T b) {
if(a > b) {
a = b;
return true;
}
return false;
}
const long long INF = 1e18;
//const ll mod = 1000000007;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c;
cin >> a >> b >> c;
int ans = 0;
if(a == b) ans = c;
if(a == c) ans = b;
if(c == b) ans = a;
cout << ans << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Chinchirorin |
| User | kort0n |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 712 Byte |
| Status | AC |
| Exec Time | 5 ms |
| Memory | 3632 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 5 ms | 3584 KiB |
| example_01.txt | AC | 2 ms | 3512 KiB |
| example_02.txt | AC | 4 ms | 3508 KiB |
| test_00.txt | AC | 2 ms | 3632 KiB |
| test_01.txt | AC | 3 ms | 3580 KiB |
| test_02.txt | AC | 2 ms | 3580 KiB |
| test_03.txt | AC | 2 ms | 3584 KiB |
| test_04.txt | AC | 2 ms | 3564 KiB |