結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-09-13 09:49:16 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 81,192 KB |
| 実行使用メモリ | 81,596 KB |
| 最終ジャッジ日時 | 2026-07-17 21:07:52 |
| 合計ジャッジ時間 | 3,138 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 24 |
ソースコード
x,y,d = map(int, input().split())
if (d > x):
res = (d - x)
if (res > y):
print (0)
else:
print (y - res + 1)
else:
print (min(y + 1, d + 1))
togatoga