結果

問題 No.35 タイパー高橋
ユーザー gigurururugigurururu
提出日時 2015-04-10 18:50:31
言語 Haskell
(9.8.2)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 253 bytes
コンパイル時間 2,261 ms
コンパイル使用メモリ 158,280 KB
実行使用メモリ 15,592 KB
最終ジャッジ日時 2023-09-17 19:10:14
合計ジャッジ時間 2,839 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
13,652 KB
testcase_01 AC 22 ms
13,416 KB
testcase_02 AC 32 ms
15,508 KB
testcase_03 AC 32 ms
15,592 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 . intercalate " " . 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