add: swea/3750.py

This commit is contained in:
Gyubin Han
2024-05-20 16:21:53 +09:00
parent 335508c78d
commit 61ff1028f6

14
swea/3750.py Normal file
View File

@@ -0,0 +1,14 @@
t=int(input())
pr=[]
for tc in range(1,t+1):
n=input()
while len(n)>1:
r=0
for c in n:
v=int(c)
r+=v
n=str(r)
pr.append("#{} {}".format(tc,n))
for p in pr:
print(p)