update spaced icpc contest folder to kebab case repository formatting

This commit is contained in:
Xevion
2020-02-29 20:50:30 -06:00
parent 54da8afaa0
commit 2f3aa0eefe
20 changed files with 0 additions and 0 deletions
@@ -0,0 +1 @@
24
@@ -0,0 +1 @@
25
@@ -0,0 +1 @@
987654321
+17
View File
@@ -0,0 +1,17 @@
import os, sys
def harshad(n):
return (n % sum(map(int, list(str(n))))) == 0
def main():
inputs = [os.path.join(sys.path[0], 'inputs', x) for x in
os.listdir(os.path.join(sys.path[0], 'inputs'))]
inputs = [int(open(path).read()) for path in inputs]
for i in inputs:
while not harshad(i):
i += 1
print(i)
if __name__ == "__main__":
main()