結果
| 問題 | No.5003 物理好きクリッカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-12-01 07:31:18 | 
| 言語 | Haskell (9.10.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 340 bytes | 
| コンパイル時間 | 1,284 ms | 
| 実行使用メモリ | 22,008 KB | 
| スコア | 219,431 | 
| 平均クエリ数 | 9919.28 | 
| 最終ジャッジ日時 | 2021-07-19 07:31:29 | 
| 合計ジャッジ時間 | 4,491 ms | 
| ジャッジサーバーID (参考情報) | judge12 / judge15 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 WA * 21 | 
コンパイルメッセージ
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, stdout)
main = do
    n <- readLn
    putStrLn . unlines $ game n 0 0
    hFlush stdout
    
    
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
    
            
            
            
        