結果

問題 No.35 タイパー高橋
ユーザー gigurururugigurururu
提出日時 2015-04-10 22:15:10
言語 Haskell
(9.8.2)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 640 ms
コンパイル使用メモリ 157,180 KB
実行使用メモリ 15,628 KB
最終ジャッジ日時 2023-09-17 19:14:29
合計ジャッジ時間 1,380 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
13,712 KB
testcase_01 AC 22 ms
13,352 KB
testcase_02 AC 32 ms
15,628 KB
testcase_03 AC 32 ms
15,584 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
main = 
  putStrLn . unwords . map show . foldl f [0,0] . map words . drop 1 . lines =<< getContents
  where
    f [a,b] [t,s] = [a+ad,b+bd]
      where
        ad = min (length s) ((read t)*3`div`250)
        bd = length s - ad
0