結果

問題 No.965 門松列が嫌い
ユーザー mlihua09mlihua09
提出日時 2020-08-31 23:05:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 168 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 71,296 KB
最終ジャッジ日時 2023-08-10 18:04:01
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,136 KB
testcase_01 AC 70 ms
71,180 KB
testcase_02 AC 71 ms
71,012 KB
testcase_03 AC 71 ms
71,172 KB
testcase_04 AC 74 ms
71,296 KB
testcase_05 AC 69 ms
71,092 KB
testcase_06 AC 70 ms
71,264 KB
testcase_07 AC 71 ms
71,104 KB
testcase_08 AC 70 ms
71,108 KB
testcase_09 AC 69 ms
71,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split())

if A > C:
    A, C = C, A
    
if B > C:
    print(min(B - C, C - A))

elif A > B:
    print(min(A - B, C - A))
else:
    print(0)
0