We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb866c5 commit c86294cCopy full SHA for c86294c
심수연/8주차/260219.py
@@ -6,7 +6,7 @@
6
N = int(input())
7
8
for i in range(1, N+1):
9
- temp = i + sum((map(int, str(i))))
+ temp = i + sum(map(int, str(i)))
10
if temp == N: # i가 작은순부터 브루트포스
11
print(i)
12
break
0 commit comments