結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-20 09:54:09 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 5,000 ms |
| + 16µs | |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 56,456 KB |
| 最終ジャッジ日時 | 2026-09-28 15:59:25 |
| 合計ジャッジ時間 | 2,177 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
x, y, d = map(int, input().split())
if d > y:
min_ = d - y
else:
min_ = 0
if d > x:
max_ = x
else:
max_ = d
print(max(0, max_ - min_ + 1))