結果

問題 No.1934 Four Fruits
ユーザー pitPpitP
提出日時 2022-05-13 22:03:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-22 01:55:18
合計ジャッジ時間 1,022 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
cnt = [0] * 4
cnt[a] += 1
cnt[b] += 1
cnt[c] += 1

if max(cnt) == 3:
    print(a)
elif max(cnt) == 2:
    for i in range(4):
        if cnt[i] == 1:
            print(i)
else:
    for i in range(4):
        if cnt[i] == 0:
            print(i)
0