結果
問題 | No.1934 Four Fruits |
ユーザー |
|
提出日時 | 2022-12-16 18:57:32 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 636 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 55,140 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 23:54:45 |
合計ジャッジ時間 | 1,719 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <iostream>using namespace std;int main(){int a, b, c;cin >> a >> b >> c;if (a == b && b == c){cout << a << endl;return 0;}if (a != b && b != c && a != c){for (int i = 0; i < 4; i++){if (i != a && i != b && i != c){cout << i << endl;return 0;}}}if (a == b){cout << c << endl;return 0;}if (c == b){cout << a << endl;return 0;}if (c == a){cout << b << endl;return 0;}}