結果

問題 No.1934 Four Fruits
ユーザー lloyzlloyz
提出日時 2022-05-13 21:22:34
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 62 ms
使用メモリ 7,784 KB
最終ジャッジ日時 2023-02-21 12:57:24
合計ジャッジ時間 1,168 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 15 ms
7,732 KB
testcase_02 AC 16 ms
7,636 KB
testcase_03 AC 16 ms
7,676 KB
testcase_04 AC 16 ms
7,620 KB
testcase_05 AC 16 ms
7,664 KB
testcase_06 AC 16 ms
7,544 KB
testcase_07 AC 16 ms
7,784 KB
testcase_08 AC 16 ms
7,596 KB
testcase_09 AC 16 ms
7,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = list(map(int, input().split()))
L.sort()
if L[0] == L[1] == L[2]:
    print(L[0])
    exit()
if L[1] == L[2]:
    print(L[0])
    exit()
if L[0] == L[1]:
    print(L[2])
    exit()
for i in range(4):
    if i not in L:
        print(i)
        exit()
0