結果

問題 No.1934 Four Fruits
ユーザー 9Qpr_9Qpr_
提出日時 2022-05-13 21:29:02
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 71,216 KB
最終ジャッジ日時 2023-09-29 06:28:59
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,916 KB
testcase_01 AC 73 ms
71,216 KB
testcase_02 AC 76 ms
71,120 KB
testcase_03 AC 78 ms
70,736 KB
testcase_04 AC 76 ms
70,984 KB
testcase_05 AC 77 ms
70,828 KB
testcase_06 AC 75 ms
70,716 KB
testcase_07 AC 77 ms
70,984 KB
testcase_08 AC 75 ms
70,928 KB
testcase_09 AC 75 ms
70,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
def MI(): return map(int, input().split())

a, b, c = MI()

if a == b == c:
    print(a)
elif a != b and b != c and c != a:
    tmp = [a, b, c]
    for i in range(4):
        if i in tmp:
            continue
        else:
            print(i)
else:
    if a == b:
        print(c)
    elif b == c:
        print(a)
    else:
        print(b)
0