結果

問題 No.1934 Four Fruits
ユーザー Omura ShunsukeOmura Shunsuke
提出日時 2022-05-14 21:53:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-30 14:48:54
合計ジャッジ時間 1,653 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,564 KB
testcase_01 AC 74 ms
71,324 KB
testcase_02 AC 72 ms
71,404 KB
testcase_03 AC 72 ms
71,584 KB
testcase_04 AC 73 ms
71,508 KB
testcase_05 AC 72 ms
71,584 KB
testcase_06 AC 73 ms
71,332 KB
testcase_07 AC 74 ms
71,316 KB
testcase_08 AC 73 ms
71,408 KB
testcase_09 AC 73 ms
71,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
if a == b and b == c:
    print(a)
elif a != b and a != c and b != c:
    print(6-a-b-c)
else:
    L = [a,b,c]
    L.sort()
    if L[0] == L[1]:
        print(L[2])
    else:
        print(L[0])
0