結果

問題 No.131 マンハッタン距離
ユーザー rin204
提出日時 2022-01-20 09:53:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 53,696 KB
最終ジャッジ日時 2024-11-23 14:25:20
合計ジャッジ時間 2,264 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, d = map(int, input().split())

if d > y:
    min_ = d - y
else:
    min_ = 0
    
if d - x > y:
    max_ = x
else:
    max_ = d
print(max(0, max_ - min_ + 1))
0