結果
問題 | No.131 マンハッタン距離 |
ユーザー | d_nishiyama85 |
提出日時 | 2015-06-09 08:41:57 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 711 ms |
コンパイル使用メモリ | 156,544 KB |
実行使用メモリ | 7,168 KB |
最終ジャッジ日時 | 2023-09-20 20:08:42 |
合計ジャッジ時間 | 5,474 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 2 ms
6,952 KB |
testcase_03 | AC | 122 ms
7,096 KB |
testcase_04 | AC | 92 ms
6,964 KB |
testcase_05 | AC | 72 ms
6,960 KB |
testcase_06 | AC | 22 ms
7,168 KB |
testcase_07 | AC | 2 ms
6,824 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 3 ms
7,004 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 773 ms
6,988 KB |
testcase_26 | AC | 772 ms
7,028 KB |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/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 $ filter (\x -> d - x == abs(b)) [0..abs(a)] readInt :: String -> Int readInt = read