/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 16ms 2.953 MiB
#2 Accepted 16ms 3.094 MiB
#3 Accepted 16ms 3.07 MiB
#4 Accepted 16ms 2.934 MiB

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