arrow_forward
همه ارسالها
جزئیات ارسال کد#233
برای پسندیدن وارد شوید
1ball = int(input())
2bounces = 1
3shots = iter(range(round(ball / 2), 0, -1))
4
5
6while ball > 1:
7 shot = next(shots)
8 if not bool(ball % shot):
9 bounces += 1
10 ball = shot
11 shots = iter(range(round(ball / 2), 0, -1))
12
13
14print(bounces)
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8