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:57:17
- Judged At
- 2024-11-11 03:25:07
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 324.0 KiB