結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー e7a894e7a894
提出日時 2018-05-11 20:15:19
言語 Haskell
(9.8.2)
結果
AC  
実行時間 653 ms / 3,000 ms
コード長 122 bytes
コンパイル時間 758 ms
コンパイル使用メモリ 157,224 KB
実行使用メモリ 92,208 KB
最終ジャッジ日時 2023-09-10 12:39:20
合計ジャッジ時間 6,489 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,940 KB
testcase_01 AC 3 ms
6,916 KB
testcase_02 AC 3 ms
6,896 KB
testcase_03 AC 2 ms
6,904 KB
testcase_04 AC 3 ms
6,968 KB
testcase_05 AC 3 ms
8,008 KB
testcase_06 AC 9 ms
11,304 KB
testcase_07 AC 52 ms
18,612 KB
testcase_08 AC 222 ms
51,232 KB
testcase_09 AC 322 ms
63,740 KB
testcase_10 AC 552 ms
65,516 KB
testcase_11 AC 563 ms
66,840 KB
testcase_12 AC 584 ms
70,368 KB
testcase_13 AC 604 ms
74,512 KB
testcase_14 AC 564 ms
66,812 KB
testcase_15 AC 574 ms
70,704 KB
testcase_16 AC 653 ms
92,208 KB
testcase_17 AC 2 ms
6,884 KB
testcase_18 AC 3 ms
6,972 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.Monad

main = do
  n <- readLn
  as <- replicateM n getLine
  putStrLn . show . foldl (+) 0 . map read $ as
0