喝水问题
摘要:
今有一缸于院中,缸中有水两百升朝抱缸饮三十升暮加白糖二十升朝朝暮暮如此往何时缸中无水声? 不考虑物理因素,无水声指没有任何水。 n=200 t=0 while True: if n==30: n=n-30 t+=1 break else: n=n-30+20 t+=1 print(n,t) prin 阅读全文
posted @ 2020-08-14 13:59 天若有情66 阅读(281) 评论(0) 推荐(0)
浙公网安备 33010602011771号