poj 2013 Symmetric Order
来源:互联网 发布:access数据库 编辑:程序博客网 时间:2024/04/29 06:17
#include "iostream"#include "vector"#include "string"#include "algorithm"using namespace std;vector<string> v1;vector<string> v2;vector<string>::iterator it1;vector<string>::iterator it2;int main(){int num, i, j, k, count = 0;string temp;while (cin >> num && num != 0){v1.clear();v2.clear();count++;for (i = 0; i < num; i++){cin >> temp;if (i%2 == 0)v1.push_back(temp);elsev2.push_back(temp);}reverse(v2.begin(), v2.end()); cout << "SET " << count << endl;for (it1 = v1.begin(); it1 != v1.end(); it1++)cout << (*it1) << endl;for (it2 = v2.begin(); it2 != v2.end(); it2++)cout << (*it2) << endl;} system("pause");return 0;}
- poj 2013 Symmetric Order
- poj 2013 Symmetric Order
- poj 2013 Symmetric Order
- POJ 2013 Symmetric Order
- poj 2013 Symmetric Order
- poj 2013 Symmetric Order
- POJ 2013 - Symmetric Order
- POJ 2013 Symmetric Order
- [POJ] 2013 -> Symmetric Order
- POJ 2013 Symmetric Order
- poj 2013 Symmetric Order 规律
- OpenJudge/Poj 2013 Symmetric Order
- POJ 2013 Symmetric Order 水
- POJ 2013 Symmetric Order G++
- POJ 2013 Symmetric Order (水题)
- POJ 2013 Symmetric Order(水~)
- POJ-2013 Symmetric Order-对称排列人名
- POJ Symmetric Order
- Oracle agent 6.21采集不到数据
- 实用js代码大全
- C语言二位数组的深入理解
- android NDK 编译静态库
- 【火狐打不开百度首页】解决方法
- poj 2013 Symmetric Order
- 基础之初级菜单(带二级显示,可伸展)
- MakeFile中使用linux命令和MakeFile函数
- 结构的存储分配
- 黑客之google入侵网站常用方式 2
- Vxworks系统学习之一----任务
- ISO 20022标准在中国金融业的应用
- eclipse中jseclipse插件安装
- 苹果成功关键:乔布斯与软硬件结合