結果

問題 No.5 数字のブロック
ユーザー morris_555morris_555
提出日時 2015-12-17 23:14:05
言語 Haskell
(9.8.2)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 2,702 ms
コンパイル使用メモリ 158,368 KB
実行使用メモリ 15,132 KB
最終ジャッジ日時 2023-08-11 14:25:35
合計ジャッジ時間 4,910 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,292 KB
testcase_01 AC 3 ms
7,332 KB
testcase_02 AC 3 ms
7,020 KB
testcase_03 AC 22 ms
12,988 KB
testcase_04 AC 23 ms
12,628 KB
testcase_05 AC 33 ms
14,540 KB
testcase_06 AC 23 ms
12,860 KB
testcase_07 AC 22 ms
12,828 KB
testcase_08 AC 23 ms
13,264 KB
testcase_09 AC 12 ms
11,756 KB
testcase_10 AC 33 ms
15,132 KB
testcase_11 AC 22 ms
12,196 KB
testcase_12 AC 22 ms
12,692 KB
testcase_13 AC 33 ms
14,320 KB
testcase_14 AC 4 ms
8,016 KB
testcase_15 AC 4 ms
8,668 KB
testcase_16 AC 32 ms
14,572 KB
testcase_17 AC 33 ms
14,544 KB
testcase_18 AC 33 ms
14,328 KB
testcase_19 AC 42 ms
15,060 KB
testcase_20 AC 2 ms
7,380 KB
testcase_21 AC 3 ms
7,148 KB
testcase_22 AC 3 ms
7,196 KB
testcase_23 AC 2 ms
7,328 KB
testcase_24 AC 4 ms
8,924 KB
testcase_25 AC 6 ms
10,544 KB
testcase_26 AC 3 ms
7,264 KB
testcase_27 AC 3 ms
7,264 KB
testcase_28 AC 3 ms
7,228 KB
testcase_29 AC 22 ms
12,800 KB
testcase_30 AC 12 ms
11,860 KB
testcase_31 AC 3 ms
7,280 KB
testcase_32 AC 2 ms
7,236 KB
testcase_33 AC 3 ms
7,216 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 #

import Control.Applicative
import Data.List

main :: IO ()
main = do
    l:_:ws <- map read . words <$> getContents :: IO [Int]
    print . length . filter (<= l) . scanl1 (+) . sort $ ws
0