結果

問題 No.1934 Four Fruits
ユーザー ikomaikoma
提出日時 2022-05-13 22:02:51
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,312 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-09-29 07:16:31
合計ジャッジ時間 1,729 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,292 KB
testcase_01 AC 71 ms
71,572 KB
testcase_02 AC 72 ms
71,404 KB
testcase_03 AC 70 ms
71,316 KB
testcase_04 AC 72 ms
71,352 KB
testcase_05 AC 68 ms
71,312 KB
testcase_06 AC 68 ms
71,168 KB
testcase_07 AC 66 ms
71,292 KB
testcase_08 AC 68 ms
71,516 KB
testcase_09 AC 68 ms
71,292 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