結果

問題 No.965 門松列が嫌い
ユーザー kohei2019kohei2019
提出日時 2022-05-14 17:10:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 118 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 71,444 KB
最終ジャッジ日時 2023-09-30 09:00:38
合計ジャッジ時間 1,783 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,220 KB
testcase_01 AC 70 ms
71,108 KB
testcase_02 AC 69 ms
71,172 KB
testcase_03 AC 70 ms
71,364 KB
testcase_04 WA -
testcase_05 AC 68 ms
71,172 KB
testcase_06 WA -
testcase_07 AC 72 ms
71,224 KB
testcase_08 AC 72 ms
70,968 KB
testcase_09 AC 68 ms
71,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int,input().split())
if A > B:
    print(min(abs(A-C),min(abs(A-B),abs(C-B))))
else:
    print(B-max(A,C))
0