結果

問題 No.1934 Four Fruits
ユーザー moon17moon17
提出日時 2022-05-13 21:30:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-09-29 06:30:26
合計ジャッジ時間 1,618 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,432 KB
testcase_01 AC 66 ms
71,304 KB
testcase_02 AC 66 ms
71,644 KB
testcase_03 AC 66 ms
71,412 KB
testcase_04 AC 66 ms
71,336 KB
testcase_05 AC 65 ms
71,496 KB
testcase_06 AC 66 ms
71,560 KB
testcase_07 AC 66 ms
71,468 KB
testcase_08 AC 65 ms
71,340 KB
testcase_09 AC 66 ms
71,572 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