OJ-Problems-Source/OpenJudge/ch0107_冰封/01.c

15 lines
243 B
C
Raw Normal View History

2016-07-06 14:15:22 +08:00
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[]) {
int i, cnt = 0;
for(i = 0; i < 256; i++) {
char k;
k = getchar();
if(k == '\n') break;
if(k >= '0' && k <= '9') cnt++;
}
printf("%i", cnt);
return 0;
}