我算出来1004.xxx 是不是考虑概率的时候有偏差
来源:8-13 划算还是不划算
粽糕里咖
2018-04-15
请大神指点啊..命名比较混乱请大神多包涵
下面附上我的代码 得到结果是一颗6级石头消耗的总金
def stonelevel1(j, z, t): global xiaohao1j xiaohao1j = 0.75*j global xiaohao1z xiaohao1z = 8*z def stonelevel1_3(j, z, t): global xiaohao2j global xiaohao2t global xiaohao2z xiaohao2j = 0.39*j + 13 * xiaohao1j xiaohao2t = 10*t xiaohao2z = 13 * xiaohao1z return xiaohao2j, xiaohao2t, xiaohao2z def stonelevel3_4(j, z, t): global xiaohao3j global xiaohao3t global xiaohao3z xiaohao3j = 0.897*j/0.4878 + 16*xiaohao1j/0.4878 + xiaohao2j xiaohao3t = 10*t+xiaohao2t xiaohao3z = 16*xiaohao1z/0.4878 + xiaohao2z return xiaohao3j, xiaohao3t, xiaohao3z def stonelevel4_6(j, z, t): global xiaohao4j global xiaohao4t global xiaohao4z xiaohao4j = 19.75*j + 13*xiaohao3j xiaohao4t = 10*t + 13*xiaohao3t xiaohao4z = 13*xiaohao3z return xiaohao4j, xiaohao4t, xiaohao4z stonelevel1(1, 1, 1) stonelevel1_3(1, 1, 1) stonelevel3_4(1, 1, 1) stonelevel4_6(1, 1, 1) print(stonelevel4_6(1, 1, 1)) jin, ti, zuan = stonelevel4_6(1, 1, 1) sumjin = jin + 0.05*zuan + 1*ti print(sumjin)
写回答
1回答
-
7七月
2018-04-15
我算的是900多,概率可能算的不太对。
022018-04-19
相似问题