結果
| 問題 | No.5003 物理好きクリッカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-01 07:36:49 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 10,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 1,030 ms |
| 実行使用メモリ | 22,008 KB |
| スコア | 951,752 |
| 平均クエリ数 | 15119.00 |
| 最終ジャッジ日時 | 2021-07-19 07:31:26 |
| 合計ジャッジ時間 | 4,442 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 > 150 && c >= 150 = "buy hand" : game (n - 1) (c - 150 + h) (h + 2)
| otherwise = "click" : game (n - 1) (c + 1 + h) h