結果
問題 | No.1934 Four Fruits |
ユーザー |
![]() |
提出日時 | 2022-05-13 22:02:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 469 ms |
コンパイル使用メモリ | 82,692 KB |
実行使用メモリ | 53,440 KB |
最終ジャッジ日時 | 2024-07-22 01:52:11 |
合計ジャッジ時間 | 1,159 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
a,b,c=map(int,input().split()) r=set([0,1,2,3]) - set([a,b,c]) if len(r)==1: print(r.pop()) else: if a==b==c:print(a) else: cnt={} cnt[a] = cnt.get(a,0)+1 cnt[b] = cnt.get(b,0)+1 cnt[c] = cnt.get(c,0)+1 for i in [a,b,c]: if cnt[i]==1: print(i)