結果

問題 No.35 タイパー高橋
ユーザー はむ吉🐹はむ吉🐹
提出日時 2015-10-23 14:53:33
言語 Haskell
(9.8.2)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 3,071 ms
コンパイル使用メモリ 160,848 KB
実行使用メモリ 12,604 KB
最終ジャッジ日時 2023-09-30 05:07:26
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
12,468 KB
testcase_01 AC 22 ms
12,568 KB
testcase_02 AC 22 ms
12,604 KB
testcase_03 AC 22 ms
12,596 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 (transpose)

judge :: [String]-> [Int]
judge (t : s : _) = [g, l - g]
    where
        l = length s
        g = min l $ flip div 1000 $ (*) 12 $ read t

main :: IO ()
main = getLine >> getContents >>= putStrLn . unwords .
    map show . map sum . transpose . map judge . map words . lines
0