摘要:
已知:两个酒瓶可以换一瓶酒;四个瓶塞也可以换一瓶酒。 计算在最初拥有n瓶酒的情况下,最终可以喝到几瓶酒? 1 #coding: utf-8 2 n = int(input()); 3 wine, lid, bottle = n, n, n 4 while lid>=4 or bottle>=2: 5 阅读全文
摘要:
将输出格式化为以下格式: At t = 0.6s, a ball with initial velocity v0 = 5.000E+00 m/s is located at the height 1.23 m. 1 # coding=utf-8 2 v0 =5.0 3 g = 9.81 4 t = 阅读全文