結果
問題 |
No.5003 物理好きクリッカー
|
ユーザー |
|
提出日時 | 2018-12-01 07:19:59 |
言語 | Haskell (9.10.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 2,073 ms |
実行使用メモリ | 22,008 KB |
スコア | 418,772 |
平均クエリ数 | 10000.00 |
最終ジャッジ日時 | 2021-07-19 07:31:17 |
合計ジャッジ時間 | 5,434 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 main = do n <- readLn putStrLn . unlines $ game n 0 0 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