結果

問題 No.1934 Four Fruits
ユーザー deepjuggling
提出日時 2023-01-18 22:04:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 53,888 KB
最終ジャッジ日時 2024-06-11 21:59:06
合計ジャッジ時間 1,373 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
a = list(map(int,input().split()))
x = Counter(a)
if len(x) == 1:
    print(a[0])
elif len(x) == 2:
    for i in x:
        if x[i] == 1:
            print(i)
else:
    for i in range(4):
        if i not in a:
            print(i)
0