結果

問題 No.549 素材合成システム
ユーザー momen999momen999
提出日時 2019-04-13 16:04:36
言語 Haskell
(9.8.2)
結果
AC  
実行時間 223 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 3,678 ms
コンパイル使用メモリ 156,848 KB
実行使用メモリ 37,956 KB
最終ジャッジ日時 2023-10-13 14:22:25
合計ジャッジ時間 9,447 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,956 KB
testcase_01 AC 2 ms
7,024 KB
testcase_02 AC 2 ms
7,068 KB
testcase_03 AC 2 ms
7,124 KB
testcase_04 AC 3 ms
7,104 KB
testcase_05 AC 3 ms
6,980 KB
testcase_06 AC 3 ms
7,028 KB
testcase_07 AC 213 ms
33,888 KB
testcase_08 AC 213 ms
34,024 KB
testcase_09 AC 213 ms
33,852 KB
testcase_10 AC 213 ms
34,056 KB
testcase_11 AC 212 ms
33,868 KB
testcase_12 AC 212 ms
33,812 KB
testcase_13 AC 213 ms
34,016 KB
testcase_14 AC 212 ms
34,072 KB
testcase_15 AC 213 ms
33,884 KB
testcase_16 AC 213 ms
34,192 KB
testcase_17 AC 132 ms
20,688 KB
testcase_18 AC 102 ms
18,692 KB
testcase_19 AC 122 ms
20,728 KB
testcase_20 AC 122 ms
19,876 KB
testcase_21 AC 202 ms
35,944 KB
testcase_22 AC 203 ms
35,376 KB
testcase_23 AC 222 ms
37,956 KB
testcase_24 AC 202 ms
31,776 KB
testcase_25 AC 183 ms
29,140 KB
testcase_26 AC 212 ms
33,388 KB
testcase_27 AC 182 ms
29,988 KB
testcase_28 AC 2 ms
7,012 KB
testcase_29 AC 2 ms
6,984 KB
testcase_30 AC 2 ms
7,064 KB
testcase_31 AC 133 ms
20,688 KB
testcase_32 AC 132 ms
20,676 KB
testcase_33 AC 132 ms
20,760 KB
testcase_34 AC 132 ms
20,660 KB
testcase_35 AC 223 ms
37,804 KB
testcase_36 AC 133 ms
20,728 KB
testcase_37 AC 132 ms
20,712 KB
testcase_38 AC 3 ms
6,984 KB
testcase_39 AC 3 ms
6,984 KB
testcase_40 AC 122 ms
22,880 KB
testcase_41 AC 62 ms
16,472 KB
testcase_42 AC 12 ms
11,520 KB
testcase_43 AC 52 ms
14,580 KB
testcase_44 AC 22 ms
12,100 KB
testcase_45 AC 62 ms
15,228 KB
testcase_46 AC 42 ms
13,592 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 Data.List (delete)

solve :: [Int] -> Int
solve xs = mx + (sum . map (flip div 2)) xs' where
    mx = maximum xs
    xs' = delete mx xs

main = do
    getLine
    xs <- map read . words <$> getLine
    print $ solve xs
0