結果

問題 No.965 門松列が嫌い
ユーザー komkompi
提出日時 2020-01-13 21:27:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-22 22:37:40
合計ジャッジ時間 1,000 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
A,B,C=map(int,input().split())

ans=[]

ans.append(B-A+1)
ans.append(B-C+1)
ans.append(abs(A-C))

#print(ans)
print(min(ans))

0