1 条题解
-
0
C++ :
#include<iostream> #include<cstdio> using namespace std; int main() { char c; int letter=0,digit=0,space=0,other=0; while ((c=getchar()) != '\n') if (isalpha(c)) letter++; else if (isalnum(c)) digit++; else if (c==' ') space++; else other++; cout<<letter<<" "<<digit<<" "<<space<<" "<<other<<endl; return 0; }
- 1
信息
- ID
- 390
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 10
- 标签
- (无)
- 递交数
- 1
- 已通过
- 1
- 上传者