結果
問題 | No.5003 物理好きクリッカー |
ユーザー | ebicochineal |
提出日時 | 2018-12-04 01:50:45 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,414 bytes |
コンパイル時間 | 53 ms |
実行使用メモリ | 22,620 KB |
スコア | 0 |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2021-07-19 08:17:42 |
合計ジャッジ時間 | 6,986 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
ソースコード
#! /usr/bin/env python3 import sys n = 10000 s = 'BFSNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN'*1000 c = 0 #################### base = {'hand':150, 'lily':2000, 'factory':30000, 'casino':600000, 'grimoire':10000000} basecookie = {'hand':1, 'lily':10, 'factory':120, 'casino':2000, 'grimoire':25000} b = {'hand':150, 'lily':2000, 'factory':30000, 'casino':600000, 'grimoire':10000000} cookie = {'hand':1, 'lily':0, 'factory':0, 'casino':0, 'grimoire':0} r = {'hand':0, 'lily':1, 'factory':1, 'casino':1, 'grimoire':1} buy = {'hand':1, 'lily':0, 'factory':0, 'casino':0, 'grimoire':0} g = {'hand':12, 'lily':11, 'factory':11, 'casino':11, 'grimoire':30} x = {'hand':1, 'lily':1, 'factory':1, 'casino':1, 'grimoire':1} fever = 0 ss='' for i in range(n): tc = c # print(c, d, file=sys.stderr) f=0 cmd = '' if cmd == '' and i >= n - 1 - buy['grimoire']: cmd = 'sell grimoire' if cmd == '': for k in b: if k == 'hand' and c > (base[k] // 10) * (11 ** r[k]) * [1,0.9][ss=='S'] and r[k]<3 and buy[k] > 0: cmd += 'enhclick' c -= (base[k] // 10) * (10 ** r[k]) * [1,0.9][ss=='S'] x[k] += 1 r[k] += 1 break elif c > base[k] * (11 ** r[k]) * [1,0.9][ss=='S'] and r[k]<4 and buy[k] > 0: if i > n-400 : continue cmd += 'reinforce ' + k c -= base[k] * (10 ** r[k]) * [1,0.9][ss=='S'] x[k] += 1 r[k] += 1 break if cmd == '': for k in b: if c > b[k] * [1,0.9][ss=='S'] and buy[k] < g[k]+(buy['grimoire']>=8 and x['grimoire']==2 and k == 'casino')*8: if i > n-400 : continue cmd += 'buy ' + k c -= b[k] * [1,0.9][ss=='S'] b[k] = int(1.2 * b[k]) cookie[k] += basecookie[k] buy[k] += 1 break if cmd == '' : cmd = 'click' f=1 else: # print(i, tc, c, cookie, file=sys.stderr) f=0 for k, v in cookie.items(): if k == 'hand' and f: c += v * x[k] * [1,7][fever > 0] else: c += v * x[k] * [1,7][fever > 0] fever -= 1 # print(cmd)#################### # input()#################### ss = s[i]## if 'F' == ss : fever = 19 print(c, cookie, file=sys.stderr)