2024 J2 - Dusa And The Yobis
Easyimplementationsimple math
1 Solution Available
Solution 1
PYTHON1# By Daniel Zhang, Pinetree Secondary
2
3d = int(input())
4while True:
5 y = int(input())
6 if d > y:
7 d += y
8 else:
9 break
10
11print(d)
12
Test Cases
Select a test case to view input and output