首页 > 其他 > 详细

L1-047. 装睡

时间:2017-08-10 20:28:10      阅读:478      评论:0      收藏:0      [点我收藏+]

#include <iostream>
#include <string.h>
#include <vector>
using namespace std;

int main()
{
vector<string> c;
int n;
cin >> n;
int a, b;
for(int i=0; i<n; i++)
{
string str;
cin >> str;
cin >> a >> b;
if(a<15||a>20||b<50||b>70)
c.push_back(str);
}
vector<string>::iterator iter = c.begin();
for(; iter!=c.end(); iter++)
cout << *iter << endl;
return 0;
}

L1-047. 装睡

原文:http://www.cnblogs.com/1915884031A-qqcom/p/7341146.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!