結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2014-11-24 06:17:17 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 10,185 ms |
| コンパイル使用メモリ | 185,344 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2025-01-02 21:09:21 |
| 合計ジャッジ時間 | 10,896 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.10.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import Control.Applicative
import Control.Monad
import Data.List (foldl')
import Text.Printf
main = do
n <- readLn
ts <- replicateM n $ words <$> getLine
let
f (t:s:_) = (s'-missed, missed)
where
t' = read t
s' = length s
missed = max (s'-12*t'`div`1000) 0
(a, b) = foldl' (\(a,b) (c,d) -> (a+c,b+d)) (0, 0) $ map f ts
in printf "%d %d\n" a b
tottoripaper