天天向上

N = float(input())
n = N *0.001
a = 1.0
b = 1.0
for i in range(365):
a = a * (1+n)
for i in range(365):
b = b *(1-n)
c= a /b
print('{:.2f}'.format(a),end = ', ')
print('{:.2f}'.format(b),end = ', ')
print('{:.0f}'.format(c))

 

posted @ 2021-09-13 21:09  zty666  阅读(42)  评论(0)    收藏  举报