結果
問題 |
No.741 AscNumber(Easy)
|
ユーザー |
![]() |
提出日時 | 2018-10-13 21:41:45 |
言語 | Haskell (9.10.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 1,807 ms |
コンパイル使用メモリ | 176,768 KB |
実行使用メモリ | 769,188 KB |
最終ジャッジ日時 | 2024-10-12 18:11:33 |
合計ジャッジ時間 | 6,131 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 MLE * 1 -- * 19 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
solve n = last $ iterate step (replicate 10 1) !! n where step xs = zipWith add xs (scanl add 0 xs) add x y = (x+y)`mod`(10^9+7) main = print . solve =<< readLn