結果

問題 No.5003 物理好きクリッカー
ユーザー ebicochinealebicochineal
提出日時 2018-12-01 04:29:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 1,720 bytes
コンパイル時間 61 ms
実行使用メモリ 22,716 KB
スコア 0
平均クエリ数 2354.00
最終ジャッジ日時 2021-07-19 07:29:53
合計ジャッジ時間 7,812 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env python3

n = int(input())
s = input()
c = 0
x = {'hand':150, 'lily':2000, 'factory':30000, 'casino':600000, 'grimoire':10000000}

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}
r = {'hand':1, 'lily':1, 'factory':1, 'casino':1, 'grimoire':1}
for i in range(n):
    print(c, d)
    f=0
    cmd = ''
    if cmd == '' and i >= n - 4 and d['casino'] > 0:
        cmd = 'sell casino'
    if cmd == '' and i >= n - 2 and d['grimoire'] > 0:
        cmd = 'sell grimoire'
    if cmd == '':
        for k in b:
            if k == 'hand' and c > 15*a[k] and d[k] <= a[k] * 10 and r[k]:
                cmd += 'enhclick'
                c -= 15*a[k]
                a[k] *= 2
                d[k] *= 2
                r[k] = 0
                break
            elif c > b[k]*10 and a[k] * 5 < d[k] <= a[k] * 10 and r[k]:
                if b[k] >= 10000000 and i > n-200 : continue
                cmd += 'reinforce ' + k
                c -= b[k]
                a[k] *= 2
                d[k] *= 2
                r[k] = 0
                break
    if cmd == '':
        for k in b:
            if c > b[k] and d[k] < a[k] * 10:
                if b[k] >= 10000000 and i > n-200 : continue
                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 f:
            c += j
        else:
            c += j
    s = input()
0