restructure zeta/** to storage/zeta/**
This commit is contained in:
11
storage/zeta/py/completed/2231.py
Normal file
11
storage/zeta/py/completed/2231.py
Normal file
@@ -0,0 +1,11 @@
|
||||
N = int(input())
|
||||
|
||||
def seps(n):
|
||||
return n + sum(map(int, str(n)))
|
||||
|
||||
for i in range(1 if N < 101 else N-100, N):
|
||||
if seps(i) == N:
|
||||
print(i)
|
||||
break
|
||||
else:
|
||||
print(0)
|
||||
Reference in New Issue
Block a user