結果
問題 | No.146 試験監督(1) |
ユーザー | はむ吉🐹 |
提出日時 | 2015-10-24 19:42:47 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 662 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 7,032 ms |
コンパイル使用メモリ | 162,076 KB |
実行使用メモリ | 11,704 KB |
最終ジャッジ日時 | 2023-10-11 08:16:06 |
合計ジャッジ時間 | 3,992 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 662 ms
11,572 KB |
testcase_01 | AC | 662 ms
11,576 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 = (`mod` 1000000007) . sum . map (`mod` 1000000007) . map (\(c : d : _) -> (*) d $ (`mod` 1000000007) $ (c + 1) `div` 2) main :: IO () main = getLine >> getContents >>= print . maxExaminees . map (map read) . map words . lines