結果

問題 No.1934 Four Fruits
ユーザー RainkunchRainkunch
提出日時 2022-05-18 17:00:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 71,312 KB
最終ジャッジ日時 2023-10-15 01:16:07
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,224 KB
testcase_01 AC 71 ms
71,024 KB
testcase_02 AC 70 ms
71,056 KB
testcase_03 AC 69 ms
71,312 KB
testcase_04 AC 69 ms
71,108 KB
testcase_05 AC 69 ms
70,808 KB
testcase_06 AC 68 ms
70,848 KB
testcase_07 AC 70 ms
71,088 KB
testcase_08 AC 71 ms
71,072 KB
testcase_09 AC 69 ms
71,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int, input().split())
mn = [a,b,c]
group = set([a,b,c])
vari = list(group)
length = len(group)
if length == 1: print(a)
elif length == 2:
    if mn.count(vari[0]) > mn.count(vari[1]):
        print(vari[1])
    else: print(vari[0])
else:
    ku = {0,1,2,3}
    print(*(ku-group))
0