ZOJ 2987
来源:互联网 发布:小q书桌类似软件 编辑:程序博客网 时间:2024/06/08 02:09
题意
给字符串指定删除字符,然后输出
考差了string中的erase函数
巨简单 =_= …
代码
#include <iostream>#include <string>using namespace std;int main(){ int n,count=1; cin>>n; while(n--){ int pos; string s; cin>>pos>>s; s.erase(pos-1,1); cout<<count<<" "<<s<<endl; count++; } return 0;}
0 0
- zoj 2987
- ZOJ-2987
- ZOJ 2987
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- VB编程小练习
- Android应用开发系列(二)登陆界面
- Mybatis 学习笔记
- 诺学网c++视频教程在线观看+打包下载
- nyoj 10 skiing
- ZOJ 2987
- 同步、异步、阻塞和非阻塞是几种基本的sockets
- 抓取网页所有url的简单Python爬虫源码
- mysql分页原理和sqlserver里面序列的用法
- 城市理论发展理论
- Git:如何还原一个已经同步到远程仓库的Commit?
- 浅谈单线程模型中Message、Handler、Message Queue、Looper之前的关系
- 查看main函数的返回值
- 三元运算符的使用方法