結果
問題 |
No.5003 物理好きクリッカー
|
ユーザー |
![]() |
提出日時 | 2018-12-01 00:43:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 462 ms / 10,000 ms |
コード長 | 730 bytes |
コンパイル時間 | 64 ms |
実行使用メモリ | 22,600 KB |
スコア | 34,860,331,813 |
平均クエリ数 | 10000.00 |
最終ジャッジ日時 | 2021-07-19 07:24:44 |
合計ジャッジ時間 | 17,542 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 |
ソースコード
#! /usr/bin/env python3 n = int(input()) s = input() c = 0 a = {'hand':1, 'lily':10, 'factory':120, 'casino':2000, 'grimoire':25000} b = {'hand':150, 'lily':2000, 'factory':30000, 'casino':600000, 'grimoire':10000000} d = {'hand':1, 'lily':0, 'factory':0, 'casino':0, 'grimoire':0} for i in range(n): # print(c, d) f=0 cmd = '' for k in b: if c > b[k] and d[k] < a[k] * 10: cmd += 'buy ' + k c -= b[k] b[k] = int(1.2 * b[k]) d[k] += a[k] break if cmd == '' : cmd = 'click' f=1 print(cmd) for i, j in d.items(): if i == 'hand' and b: c += j else: c += j s = input()