結果
| 問題 |
No.741 AscNumber(Easy)
|
| コンテスト | |
| ユーザー |
torikumino
|
| 提出日時 | 2018-10-13 21:45:02 |
| 言語 | Haskell (9.10.1) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 203 bytes |
| コンパイル時間 | 4,402 ms |
| コンパイル使用メモリ | 174,716 KB |
| 実行使用メモリ | 813,312 KB |
| 最終ジャッジ日時 | 2024-10-12 18:12:04 |
| 合計ジャッジ時間 | 9,364 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 0 xs = last xs
solve n xs = solve (n-1) (step xs)
where
step xs = zipWith add xs (scanl add 0 xs)
add x y = (x+y)`mod`(10^9+7)
main = do
n <- readLn
print $ solve n (replicate 10 1)
torikumino