結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー okadukiokaduki
提出日時 2014-12-03 00:48:16
言語 Haskell
(9.8.2)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 8,808 ms
コンパイル使用メモリ 167,776 KB
実行使用メモリ 8,952 KB
最終ジャッジ日時 2023-09-29 22:26:40
合計ジャッジ時間 10,085 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,612 KB
testcase_01 AC 3 ms
7,836 KB
testcase_02 AC 3 ms
7,680 KB
testcase_03 AC 3 ms
7,688 KB
testcase_04 AC 3 ms
8,512 KB
testcase_05 AC 3 ms
8,152 KB
testcase_06 AC 3 ms
8,616 KB
testcase_07 AC 3 ms
8,564 KB
testcase_08 AC 4 ms
8,824 KB
testcase_09 AC 4 ms
8,952 KB
testcase_10 AC 2 ms
7,652 KB
testcase_11 AC 3 ms
7,900 KB
testcase_12 AC 2 ms
8,052 KB
testcase_13 AC 2 ms
7,628 KB
testcase_14 AC 2 ms
7,660 KB
testcase_15 AC 3 ms
8,404 KB
testcase_16 AC 2 ms
7,628 KB
testcase_17 AC 2 ms
7,756 KB
testcase_18 AC 3 ms
8,352 KB
testcase_19 AC 3 ms
7,864 KB
testcase_20 AC 3 ms
7,608 KB
testcase_21 AC 3 ms
7,592 KB
testcase_22 AC 3 ms
7,920 KB
testcase_23 AC 3 ms
8,404 KB
testcase_24 AC 3 ms
8,056 KB
testcase_25 AC 2 ms
7,604 KB
testcase_26 AC 3 ms
7,712 KB
testcase_27 AC 2 ms
7,744 KB
testcase_28 AC 2 ms
7,620 KB
testcase_29 AC 3 ms
8,032 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 Text.Printf
import Data.Fixed (Pico)

-- input
main = do
  n <- fmap (read :: String -> Int) . words <$> getLine
  ns <- fmap (read :: String -> Pico) . lines <$> getContents
  putStrLn $ init $ init $ show (sum ns)
0