結果
| 問題 | No.5003 物理好きクリッカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-12-01 07:26:16 | 
| 言語 | Haskell (9.10.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 338 bytes | 
| コンパイル時間 | 949 ms | 
| 実行使用メモリ | 22,008 KB | 
| スコア | 0 | 
| 平均クエリ数 | 9919.28 | 
| 最終ジャッジ日時 | 2021-07-19 07:31:27 | 
| 合計ジャッジ時間 | 4,069 ms | 
| ジャッジサーバーID (参考情報) | judge12 / judge15 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 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 @ NEETSDKASU
import System.IO (hFlush, stdin)
main = do
    n <- readLn
    putStrLn . unlines $ game n 0 0
    hFlush stdin
    
    
game 0 _ _ = []
game n c h
    | n > 150 && c >= 150 = "buy hand" : game (n - 1) (c - 150 + h) (h + 2)
    | otherwise = "click" : game (n - 1) (c + 1 + h) h
    
            
            
            
        