結果
問題 | No.146 試験監督(1) |
ユーザー | Michae'Gon |
提出日時 | 2015-07-19 08:20:20 |
言語 | Haskell (9.8.2) |
結果 |
MLE
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 833 ms |
コンパイル使用メモリ | 156,868 KB |
実行使用メモリ | 278,776 KB |
最終ジャッジ日時 | 2023-09-22 19:13:50 |
合計ジャッジ時間 | 5,949 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | MLE | - |
testcase_01 | TLE | - |
testcase_02 | MLE | - |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) Main.hs:5:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in four further locations. Suggested fix: Please use spaces instead. | 5 | where | ^^^^^^^^ [2 of 2] Linking a.out
ソースコード
main = getLine >> getContents >>= print . solve . map (map read . words) . lines solve :: [[Integer]] -> Integer solve xs = calc xs `mod` 1000000007 where calc [] = 0 calc ([c, d] : ys) = d * ((c + 1) `div` 2) + calc ys