結果
| 問題 |
No.381 名声値を稼ごう Extra
|
| コンテスト | |
| ユーザー |
Fujisaki_prpr
|
| 提出日時 | 2016-06-20 21:39:15 |
| 言語 | Haskell (9.10.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 239 bytes |
| コンパイル時間 | 8,641 ms |
| コンパイル使用メモリ | 173,184 KB |
| 実行使用メモリ | 812,604 KB |
| 最終ジャッジ日時 | 2024-10-11 17:49:03 |
| 合計ジャッジ時間 | 11,935 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 MLE * 1 |
コンパイルメッセージ
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 Control.Applicative
import Control.Monad
main = do
ss <- string2int <$> getLine
putStrLn $ show (ss * 2 - (calc ss))
calc :: Integer -> Integer
calc 0 = 0
calc n = n + calc (n `div` 2)
string2int str = read str :: Integer
Fujisaki_prpr