結果

問題 No.1934 Four Fruits
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-13 21:28:14
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 285 ms
使用メモリ 75,888 KB
最終ジャッジ日時 2023-02-21 13:11:12
合計ジャッジ時間 2,204 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 91 ms
75,488 KB
testcase_01 AC 91 ms
75,492 KB
testcase_02 AC 91 ms
75,652 KB
testcase_03 AC 90 ms
75,680 KB
testcase_04 AC 91 ms
75,656 KB
testcase_05 AC 91 ms
75,888 KB
testcase_06 AC 88 ms
75,704 KB
testcase_07 AC 90 ms
75,484 KB
testcase_08 AC 89 ms
75,484 KB
testcase_09 AC 91 ms
75,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = list(map(int,input().split()))
n = [0]*4
for i in l:
    n[i] += 1
if len(set(l)) == 1:
    print(l[0])
elif len(set(l)) == 3:
    print(6-sum(l))
else:
    for i in range(4):
        if n[i] == 1:
            print(i)
            exit()
0