結果

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

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 86 ms
75,744 KB
testcase_01 AC 84 ms
75,760 KB
testcase_02 AC 85 ms
75,816 KB
testcase_03 AC 85 ms
75,888 KB
testcase_04 AC 85 ms
75,444 KB
testcase_05 AC 85 ms
75,820 KB
testcase_06 AC 85 ms
75,440 KB
testcase_07 AC 85 ms
75,840 KB
testcase_08 AC 86 ms
75,800 KB
testcase_09 AC 87 ms
75,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0