Accepted
Code
T=int(input())
for i in range(0,T):
str = input()
num =[]
for i in str:
if i.isdigit():
num.append(int(i))
print(sum(num))
Information
- Submit By
- Type
- Submission
- Problem
- P1072 Valuable digit
- Contest
- Brain Booster #4
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-07-14 17:18:32
- Judged At
- 2024-11-11 03:23:06
- Judged By
- Score
- 100
- Total Time
- 16ms
- Peak Memory
- 3.094 MiB