您的位置:首页 > 其它

The 7th Zhejiang Provincial Collegiate Programming Contest->Problem B:B - Somali Pirates

2016-02-26 23:34 405 查看
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3323

题意:去掉字符串里面的数字然后按输入顺序输出

#include<bits/stdc++.h>
using namespace std;

int main(){
int t;
cin>>t;
while(t--){
string aa;
cin>>aa;
for(int i=0;i<aa.length();i++){
if(aa[i]<'0'||aa[i]>'9')
printf("%c",aa[i]);
}
cout<<endl;
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: