結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
Snark86
|
| 提出日時 | 2016-04-25 05:33:38 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 5,000 ms |
| コード長 | 136 bytes |
| 記録 | |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 77,356 KB |
| 最終ジャッジ日時 | 2025-12-03 20:31:50 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
x,y,d = map(int,raw_input().split()) a = d - x if d > x else 0 b = d - y if d > y else 0 ans = d - a - b + 1 print ans if ans > 0 else 0
Snark86