結果
問題 |
No.639 An Ordinary Sequence
|
ユーザー |
![]() |
提出日時 | 2020-08-18 08:24:15 |
言語 | Haskell (9.10.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 10,774 ms |
コンパイル使用メモリ | 173,056 KB |
実行使用メモリ | 822,144 KB |
最終ジャッジ日時 | 2024-10-11 23:45:11 |
合計ジャッジ時間 | 10,571 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | MLE * 1 -- * 16 |
コンパイルメッセージ
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
ソースコード
main :: IO () main = do n <- readLn :: IO Int print $ solver n solver :: Int -> Int solver = iter where iter :: Int -> Int iter = (map f [0..] !!) where f 0 = 1 f i = iter (i `div` 3) + iter (i `div` 5)