結果

問題 No.965 門松列が嫌い
ユーザー Raymin012Raymin012
提出日時 2020-03-16 22:15:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 169 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 12,256 KB
最終ジャッジ日時 2023-08-18 19:28:58
合計ジャッジ時間 2,822 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,256 KB
testcase_01 AC 14 ms
7,836 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 14 ms
7,848 KB
testcase_05 RE -
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
cost_1 = abs(a-c)
for i in range(b,0,-1):
    if max(a,c) > i > min(a,c):
        tmp = i
        break
ans = min(cost_1,tmp)
print(ans)
0