Wrong Answer
Code
#include <stdio.h>
int main() {
int T;
scanf("%d", &T);
for (int i = 0; i < T; i++) {
char S[101];
scanf("%s", S);
int sum=0;
for(int i=0;i<T;i++){
if(S[i] >= '0' && S[i] <= '9'){
sum = sum + S[i] - '0';
}
}
printf("%d",sum);
return 0;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1072 Valuable digit
- Contest
- Brain Booster #4
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-07-14 15:56:07
- Judged At
- 2024-11-11 03:25:13
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 328.0 KiB