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; }
相关文章推荐
- 正则表达式(一)
- 得到数组最后一个数
- 单例模式
- 利用inotifywait监控主机文件和目录
- C++数据结构 乱搭配模板迭代
- TYVJ1288 飘飘乎居士取能量块
- 1自我介绍
- websocke通讯源码,项目实例,rfid ,商场无人引导系统,源码
- ScrollView和ListView的嵌套
- *管家病毒查杀模块逆向分析
- The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?
- 死锁-1.0.2
- 九度1002
- IO流
- 面向对象写的 五子棋(一贯作风::懒)代码懒的规范
- C++ string 用法详解
- 三国演义主要人物个人经历
- interview
- Android 4.0 Camera架构分析之preview和takePicture
- 类加载机制