結果
問題 |
No.131 マンハッタン距離
|
ユーザー |
![]() |
提出日時 | 2019-11-28 11:03:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 25 ms / 5,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 14:07:04 |
合計ジャッジ時間 | 1,744 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
x,y,d=map(int,input().split()) if x>=d and y>=d: print(d+1) elif x<d and y>=d: print(x+1) elif x>=d and y<d: print(y+1) else: ans=x+y+1-d if ans>=0: print(ans) else: print(0)