結果
問題 | No.146 試験監督(1) |
ユーザー | はむ吉🐹 |
提出日時 | 2015-10-24 19:34:20 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 652 ms / 1,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 1,332 ms |
コンパイル使用メモリ | 159,068 KB |
実行使用メモリ | 11,704 KB |
最終ジャッジ日時 | 2023-10-11 08:15:41 |
合計ジャッジ時間 | 4,135 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 652 ms
11,676 KB |
testcase_01 | AC | 652 ms
11,648 KB |
testcase_02 | AC | 652 ms
11,704 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
ソースコード
maxExaminees :: [[Integer]] -> Integer maxExaminees = flip mod 1000000007 . sum . map (\(c : d : _) -> (*) d $ (c + 1) `div` 2) main :: IO () main = getLine >> getContents >>= print . maxExaminees . map (map read) . map words . lines