結果

問題 No.1934 Four Fruits
ユーザー ああいいああいい
提出日時 2022-05-13 21:21:53
言語 PyPy3
(7.9.16)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 384 ms
実行使用メモリ 75,736 KB
最終ジャッジ日時 2023-02-21 12:55:12
合計ジャッジ時間 2,021 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
75,552 KB
testcase_01 AC 83 ms
75,732 KB
testcase_02 AC 84 ms
75,544 KB
testcase_03 AC 83 ms
75,464 KB
testcase_04 AC 84 ms
75,316 KB
testcase_05 AC 84 ms
75,596 KB
testcase_06 AC 85 ms
75,332 KB
testcase_07 AC 83 ms
75,596 KB
testcase_08 AC 82 ms
75,736 KB
testcase_09 AC 82 ms
75,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = list(map(int,input().split()))

l.sort()
s = set(l)
import sys
if len(s) == 1:
    print(l[0])
elif len(s) == 3:
    print(6 - sum(l))
else:
    if l[0] == l[1]:
        print(l[2])
    else:
        print(l[0])
0