結果
問題 |
No.131 マンハッタン距離
|
ユーザー |
![]() |
提出日時 | 2015-06-05 18:38:33 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 135 bytes |
コンパイル時間 | 672 ms |
コンパイル使用メモリ | 7,068 KB |
実行使用メモリ | 815,248 KB |
最終ジャッジ日時 | 2024-07-06 14:17:40 |
合計ジャッジ時間 | 1,857 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | RE * 1 MLE * 1 -- * 22 |
ソースコード
x,y,d = map(int,raw_input().split()) mp = [[j + i for j in range(x+1)] for i in range(y+1)] c = 0 for i in mp: c += i.count(d) print c