結果

問題 No.1934 Four Fruits
ユーザー ああいいああいい
提出日時 2022-05-13 21:21:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 70,760 KB
最終ジャッジ日時 2023-09-29 06:18:11
合計ジャッジ時間 1,790 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
70,736 KB
testcase_01 AC 71 ms
70,760 KB
testcase_02 AC 69 ms
70,616 KB
testcase_03 AC 70 ms
70,752 KB
testcase_04 AC 74 ms
70,640 KB
testcase_05 AC 69 ms
70,672 KB
testcase_06 AC 70 ms
70,656 KB
testcase_07 AC 69 ms
70,576 KB
testcase_08 AC 69 ms
70,480 KB
testcase_09 AC 69 ms
70,568 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