newton/solutions/ab_again.py

10 lines
131 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
t = int(input())
for _ in range(t):
n = list(input())
count = 0
for i in n:
count += int(i)
print(count)