diff --git a/swea/3750.py b/swea/3750.py new file mode 100644 index 0000000..7cf87a1 --- /dev/null +++ b/swea/3750.py @@ -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)