結果
問題 |
No.131 マンハッタン距離
|
ユーザー |
![]() |
提出日時 | 2018-11-25 01:05:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 21,120 KB |
最終ジャッジ日時 | 2024-12-24 19:31:39 |
合計ジャッジ時間 | 49,602 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 15 TLE * 8 |
ソースコード
x,y,d = map(int,input().split()) cnt = 0 for i in range(1,x+1): if i <= d and d <= x: cnt += 1 for j in range(1,y+1): if j <= d and d <= y: cnt += 1 if d == 0: cnt += 1 print(cnt)