結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
75,716 KB
testcase_01 AC 88 ms
75,380 KB
testcase_02 AC 90 ms
75,696 KB
testcase_03 AC 88 ms
75,592 KB
testcase_04 AC 89 ms
75,560 KB
testcase_05 AC 88 ms
75,684 KB
testcase_06 AC 87 ms
75,692 KB
testcase_07 AC 90 ms
75,776 KB
testcase_08 AC 89 ms
75,688 KB
testcase_09 AC 88 ms
75,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())
if a==b and b==c:
    d = a
elif a!=b and a!=c and b!=c:
    d = 6 - (a+b+c)
else:
    if a==b:
        d = c
    elif a==c:
        d = b
    else:
        d = a
print(d)
0