結果
| 問題 | No.5003 物理好きクリッカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-12-01 08:01:57 | 
| 言語 | Haskell (9.10.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 10,000 ms | 
| コード長 | 376 bytes | 
| コンパイル時間 | 1,213 ms | 
| 実行使用メモリ | 21,948 KB | 
| スコア | 2,612,964 | 
| 平均クエリ数 | 15294.00 | 
| 最終ジャッジ日時 | 2021-07-19 07:32:37 | 
| 合計ジャッジ時間 | 4,718 ms | 
| ジャッジサーバーID (参考情報) | judge12 / judge15 | 
| 純コード判定しない問題か言語 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 32 | 
コンパイルメッセージ
Loaded package environment from /root/.ghc/x86_64-linux-8.10.4/environments/default [1 of 1] Compiling Main ( Main.hs, Main.o ) Linking a.out ...
ソースコード
-- Try yukicoder
-- author: Leonardone
main = do
    n <- readLn
    putStrLn . unlines $ game n 0 0
    
    
game 0 _ _ = replicate 80000 "nothing"
game n c h
    | n > 200 && c >= 2000 = "buy lily" : game (n - 1) (c - 2000 + h) (h + 10)
    | n > 150 && c >= 150 = "buy hand" : game (n - 1) (c - 150 + h) (h + 1)
    | otherwise = "click" : game (n - 1) (c + 1 + h) h
    
            
            
            
        