UVA_12210_A Match Making Problem
来源:互联网 发布:姚明05-06赛季数据 编辑:程序博客网 时间:2024/05/18 02:06
#include<iostream>#include<sstream>#include<string>#include<vector>#include<list>#include<set>#include<map>#include<stack>#include<queue>#include<algorithm>#pragma warning(disable:4996)#include<cstdio>#include<cstdlib>using std::cin;using std::cout;using std::endl;using std::stringstream;using std::string;using std::vector;using std::list;using std::pair;using std::set;using std::multiset;using std::map;using std::multimap;using std::stack;using std::queue;using std::priority_queue;int main(){//freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int boy, girl,count=0;while (cin >> boy >> girl && (boy + girl)){vector<int>vec;for (int i = 0; i < boy; i++){int age; cin >> age;vec.push_back(age);}for (int i = 0; i < girl; i++){int age; cin >> age;}cout << "Case " << ++count << ": ";if (boy > girl){cout << boy - girl << ' '<<*std::min_element(vec.begin(), vec.end()) << endl;}else{cout << 0 << endl;}}return 0;}
0 0
- UVA_12210_A Match Making Problem
- UVa12210 - A Match Making Problem(排序)
- UVa 12210 - A Match Making Problem
- Change-making problem
- [Errno 14] problem making ssl connection问题解决
- docker 安装 problem making ssl connection
- YUM:[Errno 14] problem making ssl connection
- Problem J Single Round Match
- Need help on a fuzzy match problem
- GYM 100488 G.Change-making Problem(贪心)
- yum [Errno 14] problem making ssl connection CentOs
- The largest scale Auto Parts Match-Making Event Held in Shanghai by Gasgoo on December 11st
- ZOJ Problem Set - 2722 Head-to-Head Match
- The problem of extent not match in ArcMap.
- Code Jam Round 1B 2016, Problem B. Close Match
- match
- match
- match
- JAVA可视化开发工具:jigloo
- iOS ----新特性 3DTouch 开发教程全解(含源码)
- 参数修饰符
- 连接池
- linux基本命令(2)——cd命令
- UVA_12210_A Match Making Problem
- [ONTAK2015] [BZOJ4245] OR-XOR - 二进制
- Netty in action thrid chapter 心得总结
- 用JS做的小事例,鼠标点击出现东西!!
- SqlServer分页存储过程(多表查询,多条件排序),Repeater控件呈现数据以及分页
- 类型安全转换的工具类
- spring,springmvc,mybatis配置
- java的多态性
- 关于Excel中的自定义格式