結果
問題 | No.1934 Four Fruits |
ユーザー |
|
提出日時 | 2022-05-27 23:36:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-09-20 16:28:49 |
合計ジャッジ時間 | 1,261 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
import sys readline = sys.stdin.readline abc = list(map(int,readline().split())) abc_set = set(abc) if len(abc_set) == 1: print(abc[0]) elif len(abc_set) == 3: print(6 - sum(abc)) else: print(abc[0] ^ abc[1] ^ abc[2])