結果

問題 No.131 マンハッタン距離
ユーザー 🍡yurahuna
提出日時 2016-05-05 15:35:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 109 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 53,688 KB
最終ジャッジ日時 2024-10-05 09:42:07
合計ジャッジ時間 1,949 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, d = map(int, input().split())
ans = d + 1
ans -= max(0, d - x)
ans -= max(0, d - y)
print(max(0, ans))
0