結果
問題 |
No.131 マンハッタン距離
|
ユーザー |
👑 |
提出日時 | 2022-01-20 09:54:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 5,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-11-23 14:25:22 |
合計ジャッジ時間 | 2,116 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))