http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3323

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

 1 #include<bits/stdc++.h>
 2 using namespace std;
 3 
 4 int main(){
 5     int t;
 6     cin>>t;
 7     while(t--){
 8         string aa;
 9         cin>>aa;
10         for(int i=0;i<aa.length();i++){
11             if(aa[i]<'0'||aa[i]>'9')
12             printf("%c",aa[i]);
13         }
14         cout<<endl;
15     }
16     return 0;
17 } 

 

相关文章:

  • 2022-01-27
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2021-12-06
  • 2021-08-13
  • 2022-02-05
  • 2021-10-18
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案