結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー tottoripapertottoripaper
提出日時 2014-12-02 17:48:53
言語 Haskell
(9.8.2)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 7,214 ms
コンパイル使用メモリ 165,396 KB
実行使用メモリ 8,808 KB
最終ジャッジ日時 2023-09-29 22:26:49
合計ジャッジ時間 2,348 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,396 KB
testcase_01 AC 3 ms
7,516 KB
testcase_02 AC 3 ms
7,868 KB
testcase_03 AC 2 ms
7,732 KB
testcase_04 AC 4 ms
8,264 KB
testcase_05 AC 3 ms
8,016 KB
testcase_06 AC 4 ms
8,520 KB
testcase_07 AC 3 ms
8,304 KB
testcase_08 AC 4 ms
8,616 KB
testcase_09 AC 5 ms
8,808 KB
testcase_10 AC 3 ms
7,536 KB
testcase_11 AC 3 ms
7,812 KB
testcase_12 AC 3 ms
7,976 KB
testcase_13 AC 3 ms
7,564 KB
testcase_14 AC 2 ms
7,572 KB
testcase_15 AC 3 ms
8,376 KB
testcase_16 AC 3 ms
7,748 KB
testcase_17 AC 3 ms
7,492 KB
testcase_18 AC 4 ms
8,352 KB
testcase_19 AC 3 ms
7,720 KB
testcase_20 AC 3 ms
7,576 KB
testcase_21 AC 3 ms
7,476 KB
testcase_22 AC 3 ms
7,868 KB
testcase_23 AC 4 ms
8,420 KB
testcase_24 AC 3 ms
8,120 KB
testcase_25 AC 3 ms
7,516 KB
testcase_26 AC 3 ms
7,584 KB
testcase_27 AC 3 ms
7,452 KB
testcase_28 AC 3 ms
7,388 KB
testcase_29 AC 3 ms
7,916 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
import Data.Fixed
import Data.List

main = do
  n <- readLn
  ss <- replicateM n getLine
  let
    as = map (read :: String -> Pico) ss
    sum = foldl' (+) 0 as
   in putStrLn (reverse . drop 2 . reverse . show $ sum)
0