結果

問題 No.965 門松列が嫌い
ユーザー 👑 tamatotamato
提出日時 2020-01-13 20:25:44
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 145 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 86,872 KB
実行使用メモリ 71,416 KB
最終ジャッジ日時 2023-08-23 12:55:50
合計ジャッジ時間 1,694 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,376 KB
testcase_01 AC 71 ms
71,412 KB
testcase_02 AC 71 ms
71,376 KB
testcase_03 AC 71 ms
71,372 KB
testcase_04 AC 76 ms
71,416 KB
testcase_05 AC 70 ms
71,036 KB
testcase_06 AC 72 ms
71,380 KB
testcase_07 AC 72 ms
71,212 KB
testcase_08 AC 70 ms
71,316 KB
testcase_09 AC 70 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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