結果

問題 No.965 門松列が嫌い
ユーザー roarisroaris
提出日時 2020-01-15 20:13:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 160 bytes
コンパイル時間 1,606 ms
コンパイル使用メモリ 86,436 KB
実行使用メモリ 71,368 KB
最終ジャッジ日時 2023-09-02 11:56:21
合計ジャッジ時間 2,440 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
70,928 KB
testcase_01 AC 74 ms
70,832 KB
testcase_02 AC 73 ms
71,360 KB
testcase_03 AC 72 ms
71,368 KB
testcase_04 AC 74 ms
71,036 KB
testcase_05 AC 73 ms
71,140 KB
testcase_06 AC 74 ms
70,992 KB
testcase_07 AC 74 ms
70,836 KB
testcase_08 AC 75 ms
71,272 KB
testcase_09 AC 75 ms
71,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if B==max(A, B, C):
    print(min(B-max(A, C), max(A, C)-min(A, C)))
else:
    print(min(min(A, C)-B, max(A, C)-min(A, C)))
0