結果
| 問題 | No.131 マンハッタン距離 | 
| コンテスト | |
| ユーザー |  takakin | 
| 提出日時 | 2020-04-24 01:20:42 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 5,000 ms | 
| コード長 | 197 bytes | 
| コンパイル時間 | 168 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-10-14 09:54:27 | 
| 合計ジャッジ時間 | 1,910 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() x,y,d=map(int,input().split()) if x>y: x,y=y,x if d<=x: print(d+1) elif d<=y: print(x+1) elif d<=x+y: print(x+y-d+1) else: print(0)
