結果
| 問題 | No.741 AscNumber(Easy) |
| コンテスト | |
| ユーザー |
torikumino
|
| 提出日時 | 2018-10-13 21:45:02 |
| 言語 | Haskell (9.14.1) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 3,944 ms |
| コンパイル使用メモリ | 197,504 KB |
| 実行使用メモリ | 1,131,008 KB |
| 最終ジャッジ日時 | 2026-04-29 21:27:44 |
| 合計ジャッジ時間 | 8,904 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 MLE * 2 -- * 18 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/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