結果
問題 |
No.131 マンハッタン距離
|
ユーザー |
![]() |
提出日時 | 2015-06-09 00:49:26 |
言語 | Haskell (9.10.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 11,006 ms |
コンパイル使用メモリ | 171,648 KB |
実行使用メモリ | 813,312 KB |
最終ジャッジ日時 | 2024-07-06 14:55:52 |
合計ジャッジ時間 | 9,384 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | MLE * 1 -- * 23 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main = do cs <- getLine let [a, b, d] = map readInt $ words cs print $ length [(x, y) | x <- [0..abs(a) + 1], y <- [0..abs(b) + 1], x + y == d] readInt :: String -> Int readInt = read