結果

問題 No.842 初詣
ユーザー trineutrontrineutron
提出日時 2019-06-29 10:54:11
言語 Haskell
(9.8.2)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 770 ms
コンパイル使用メモリ 157,020 KB
実行使用メモリ 11,240 KB
最終ジャッジ日時 2023-09-14 23:01:53
合計ジャッジ時間 2,029 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,100 KB
testcase_01 AC 2 ms
7,140 KB
testcase_02 AC 2 ms
7,056 KB
testcase_03 AC 6 ms
9,356 KB
testcase_04 AC 5 ms
8,520 KB
testcase_05 AC 12 ms
11,136 KB
testcase_06 AC 3 ms
7,244 KB
testcase_07 AC 12 ms
11,240 KB
testcase_08 AC 3 ms
7,316 KB
testcase_09 AC 5 ms
8,880 KB
testcase_10 AC 22 ms
11,152 KB
testcase_11 AC 2 ms
7,096 KB
testcase_12 AC 4 ms
7,500 KB
testcase_13 AC 4 ms
8,328 KB
testcase_14 AC 3 ms
7,668 KB
testcase_15 AC 3 ms
7,324 KB
testcase_16 AC 4 ms
7,920 KB
testcase_17 AC 3 ms
7,416 KB
testcase_18 AC 3 ms
7,260 KB
testcase_19 AC 7 ms
10,844 KB
testcase_20 AC 12 ms
11,240 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

ソースコード

diff #

main = do
    [a, b, c, d, e, f, g] <- map read . words <$> getLine
    putStrLn $ if [() | i <- [0 .. a], j <- [0 .. b], k <- [0 .. c], l <- [0 .. d], m <- [0 .. e], n <- [0 .. f], 500 * i + 100 * j + 50 * k + 10 * l + 5 * m + n == g] /= [] then "YES" else "NO"
0