放置奇兵新版 公会(工会)商店
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了放置奇兵新版 公会(工会)商店相关的知识,希望对你有一定的参考价值。
# -*- coding: utf-8 -*-
"""
@File : test.py
@Time : 2021/4/11 18:02
@Author : Dontla
@Email : sxana@qq.com
@Software: PyCharm
"""
# from flask import Flask, render_template, Response
# import cv2
# import pyrealsense2 as rs
# import numpy as np
#
# cam_width, cam_height = 640, 360
# ctx = rs.context()
# pipeline = rs.pipeline(ctx)
# config = rs.config()
# config.enable_device('011422071925')
# # config.enable_device('037522250019')
# config.enable_stream(rs.stream.depth, cam_width, cam_height, rs.format.z16, 30)
# config.enable_stream(rs.stream.color, cam_width, cam_height, rs.format.bgr8, 30)
# pipeline.start(config)
# while True:
# frames = pipeline.wait_for_frames()
# color_frame = frames.get_color_frame()
# color_image = np.asanyarray(color_frame.get_data())
# cv2.imshow('win',color_image)
# cv2.waitKey(1)
for buy_times in range(1,10):
print('buy_times:{}'.format(buy_times))
# 刷新次数
refresh_times = buy_times - 1
# 方案1:只买狗粮(包括四星五星,8个四星狗粮算一个五星,不买光暗)
total_five_star = buy_times * (8 / 8 + 4)
total_cost = (800 * 8 + 6000 * 4) * buy_times + 20000 * refresh_times
cost_per_five_star = total_cost / total_five_star
print('方案1cost_per_five_star:{}'.format(cost_per_five_star))
# 方案2:只买狗粮(包括四星五星,8个四星狗粮算一个五星,光暗按六系狗粮计算)
total_five_star = buy_times * (12 / 8 + 6)
total_cost = (800 * 8 + 1200 * 4 + 6000 * 4 + 9000 * 2) * buy_times + 20000 * refresh_times
cost_per_five_star = total_cost / total_five_star
print('方案2cost_per_five_star:{}'.format(cost_per_five_star))
print('\\n')
# 方案3:只买神器
D:\\20191031_tensorflow_yolov3\\python\\python.exe C:/Users/Administrator/Desktop/test/test.py
buy_times:1
方案1cost_per_five_star:6080.0
方案2cost_per_five_star:7093.333333333333
buy_times:2
方案1cost_per_five_star:8080.0
方案2cost_per_five_star:8426.666666666666
buy_times:3
方案1cost_per_five_star:8746.666666666666
方案2cost_per_five_star:8871.111111111111
buy_times:4
方案1cost_per_five_star:9080.0
方案2cost_per_five_star:9093.333333333334
buy_times:5
方案1cost_per_five_star:9280.0
方案2cost_per_five_star:9226.666666666666
buy_times:6
方案1cost_per_five_star:9413.333333333334
方案2cost_per_five_star:9315.555555555555
buy_times:7
方案1cost_per_five_star:9508.57142857143
方案2cost_per_five_star:9379.047619047618
buy_times:8
方案1cost_per_five_star:9580.0
方案2cost_per_five_star:9426.666666666666
buy_times:9
方案1cost_per_five_star:9635.555555555555
方案2cost_per_five_star:9463.703703703704
Process finished with exit code 0
以上是关于放置奇兵新版 公会(工会)商店的主要内容,如果未能解决你的问题,请参考以下文章
bzoj 2079: [Poi2010]Guilds——结论题