結果
問題 |
No.1934 Four Fruits
|
ユーザー |
![]() |
提出日時 | 2024-11-27 17:37:49 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 663 bytes |
コンパイル時間 | 3,072 ms |
コンパイル使用メモリ | 272,504 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 17:37:53 |
合計ジャッジ時間 | 3,663 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<long long, long long>; #define rep(i, a, b) for(long long i = (a); i < (b); ++i) #define rrep(i, a, b) for(long long i = (a); i >= (b); --i) constexpr long long inf = 4e18; struct SetupIO { SetupIO() { ios::sync_with_stdio(0); cin.tie(0); cout << fixed << setprecision(30); } } setup_io; int main(void) { int a, b, c; cin >> a >> b >> c; if(a == b and b == c) { cout << a << '\n'; } else if(a != b and b != c and c != a) { cout << 6 - a - b - c << '\n'; } else { cout << (a xor b xor c) << '\n'; } }