結果

問題 No.549 素材合成システム
ユーザー はむ吉🐹はむ吉🐹
提出日時 2017-10-09 19:50:12
言語 Haskell
(9.8.2)
結果
AC  
実行時間 358 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 7,911 ms
コンパイル使用メモリ 174,336 KB
実行使用メモリ 37,632 KB
最終ジャッジ日時 2024-04-28 14:25:01
合計ジャッジ時間 12,125 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 331 ms
37,504 KB
testcase_08 AC 352 ms
37,376 KB
testcase_09 AC 321 ms
37,632 KB
testcase_10 AC 335 ms
37,376 KB
testcase_11 AC 327 ms
37,376 KB
testcase_12 AC 358 ms
37,632 KB
testcase_13 AC 346 ms
37,504 KB
testcase_14 AC 328 ms
37,504 KB
testcase_15 AC 326 ms
37,504 KB
testcase_16 AC 322 ms
37,504 KB
testcase_17 AC 109 ms
17,920 KB
testcase_18 AC 85 ms
15,872 KB
testcase_19 AC 100 ms
17,920 KB
testcase_20 AC 123 ms
17,024 KB
testcase_21 AC 168 ms
33,536 KB
testcase_22 AC 174 ms
32,768 KB
testcase_23 AC 187 ms
35,456 KB
testcase_24 AC 312 ms
35,456 KB
testcase_25 AC 256 ms
31,488 KB
testcase_26 AC 303 ms
37,376 KB
testcase_27 AC 278 ms
32,384 KB
testcase_28 AC 1 ms
5,376 KB
testcase_29 AC 1 ms
5,376 KB
testcase_30 AC 2 ms
5,376 KB
testcase_31 AC 110 ms
17,920 KB
testcase_32 AC 104 ms
17,920 KB
testcase_33 AC 109 ms
17,920 KB
testcase_34 AC 105 ms
18,176 KB
testcase_35 AC 185 ms
35,456 KB
testcase_36 AC 174 ms
22,016 KB
testcase_37 AC 173 ms
22,144 KB
testcase_38 AC 2 ms
5,376 KB
testcase_39 AC 1 ms
5,376 KB
testcase_40 AC 171 ms
20,992 KB
testcase_41 AC 75 ms
16,896 KB
testcase_42 AC 8 ms
8,320 KB
testcase_43 AC 40 ms
11,648 KB
testcase_44 AC 15 ms
8,832 KB
testcase_45 AC 45 ms
11,776 KB
testcase_46 AC 28 ms
10,496 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

import Data.List (sort)

solve :: [Int] -> Int
solve xs = y + sum (fmap (`div` 2) yr)
    where
        ys = sort xs
        yr = init ys
        y = last ys

main :: IO ()
main = getLine >> getLine >>= print . solve . fmap read . words
0