文章
81
粉丝
2
获赞
444
访问
8.1k
#include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin >> s;
for(char c : s){
if((c>='A' && c<='Z') || (c>='a' && c<='z'))
cout << c;
}
cout << endl;
for(char c : s){
if(c>='0' && c<='9')
cout << c;
}
cout << endl;
for(char c : s){
if(!((c>='A' && c<='Z') || (c>='a' && c<='z') || (c>='0' && c<='9')))
cout << c;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发