Skip to content

Commit a330871

Browse files
authored
[BOJ] #2231.분해합/ 브론즈2 / 13분(O)
1 parent 517a828 commit a330871

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
N = int(input())
22

3-
43
for i in range(1, N+1):
54
answer = i + sum((map(int, str(i))))
65
if answer == N:
76
print(i)
87
break
98
if i == N: # 생성자가 없는 경우
10-
print(0)
9+
print(0)

0 commit comments

Comments
 (0)