Skip to content

Commit 286edf4

Browse files
authored
Difficulty: Easy
1 parent c8e8f9f commit 286edf4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'''
2+
https://open.kattis.com/problems/easiest
3+
'''
4+
a = int(input())
5+
6+
while a > 0:
7+
i = 11
8+
n_sum = sum(map(int,list(str(a))))
9+
while True:
10+
product = list(str(a * i))
11+
chars = sum(map(int,product))
12+
if chars == n_sum:
13+
print(i)
14+
break
15+
i+=1
16+
17+
a = int(input())
18+
19+
20+

0 commit comments

Comments
 (0)