1 条题解
-
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
信息
- ID
- 3303
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者