sicily--1510. Mispelling
来源:互联网 发布:沈阳盘古网络实施顾问 编辑:程序博客网 时间:2024/05/21 11:18
输入测试个数;输入要省略的字符所在位置,扫描字符串并逐个字符的输出,当然省略了要被省略的那位
#include<iostream>#include<string>using namespace std;int main(){int testNum;cin >> testNum;for(int i = 1; i <= testNum; i++){int n;string s;cin >> n >> s;cout << i << " ";for(int j = 0; j < s.size(); j++){if(j + 1 == n)//要忽略的位置;else{cout << s[j];}}cout << endl;}return 0;}
- sicily--1510. Mispelling
- sicily 1510. Mispelling
- Sicily 1510. Mispelling
- [sicily]1510. Mispelling
- 1510. Mispelling
- 1510. Mispelling
- 1510. Mispelling
- 1510. Mispelling 喵~o( =∩ω∩= )m
- 1510[Mispelling]
- HOJ 2588 Mispelling
- Sicily 1027
- sicily 1007
- sicily 1795
- sicily 1036
- sicily 1419
- sicily 1889
- sicily 1684
- sicily 1686
- 【几何】poj1118Lining up
- analysis code(value passing, pointer(address) passing)
- 分享一个小程序(Oralce数据库结构对比程序)
- 关于做Android+J2ee系统集成开发的一点心得
- Programmer Competency Matrix
- sicily--1510. Mispelling
- 探索printf()为何可以同时输出中英文字符之谜---unicode,UTF-8,字符(上)
- Java中正则表达式的使用
- linux 生产者 消费者 问题
- Splash Screen开场屏在Android中的实现
- 生成高清缩略图; 添加图片、文字水印; 图片、文字水印透明
- Python与c++的相互调用(一)
- (六一儿童节篇)渐行渐远的儿时游戏
- Hive深入应用总结