1 solutions
-
0
C :
#include<stdio.h> #include<string.h> void main() { char x[21]; while((gets(x))!=NULL) printf("%d\n",strlen(x)); }C++ :
#include <cstdio> #include <iostream> #include <cstring> using namespace std; int main() { char a[100]; while(gets(a) != NULL) { int m = strlen(a); cout << m << endl; } }
- 1
Information
- ID
- 18094
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By