結果
問題 |
No.741 AscNumber(Easy)
|
ユーザー |
![]() |
提出日時 | 2018-12-09 19:19:45 |
言語 | Haskell (9.10.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 1,686 ms |
コンパイル使用メモリ | 175,104 KB |
実行使用メモリ | 820,640 KB |
最終ジャッジ日時 | 2024-09-16 09:05:26 |
合計ジャッジ時間 | 5,996 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 34 RE * 1 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
ソースコード
import Data.List g=1000000007 f::[Int]->[Int] f xs=let xs2=scanr1 (+) xs in (map (flip mod g) xs2) main = do e<-getLine let n=read e::Int print $ sum(foldr1 (.) (replicate (n-1) f) [1,1,1,1,1,1,1,1,1,1]) `mod` g