http://poj.org/problem?id=3781&&Nth Largest Value
来源:互联网 发布:推荐一家网络优化公司 编辑:程序博客网 时间:2024/05/14 20:37
#include<iostream>#include<set>using namespace std;int main(){ int Case; cin>>Case; set<int> Q; for(int i=1;i<=Case;++i) { int t; cin>>t; Q.clear(); for(int j=0;j<10;++j) { int a; cin>>a; Q.insert(a); if(Q.size()>3) Q.erase(Q.begin()); } cout<<t<<" "<<*Q.begin()<<endl; }return 0;}
- http://poj.org/problem?id=3781&&Nth Largest Value
- http://poj.org/problem?id=2965
- http://poj.org/problem?id=2075
- http://poj.org/problem?id=1125
- http://poj.org/problem?id=2983
- http://poj.org/problem?id=2406
- http://poj.org/problem?id=1961
- http://poj.org/problem?id=1486
- http://poj.org/problem?id=1062
- http://poj.org/problem?id=2983
- http://poj.org/problem?id=3159
- http://poj.org/problem?id=1201
- http://poj.org/problem?id=3259
- http://poj.org/problem?id=3233
- http://poj.org/problem?id=1273
- http://poj.org/problem?id=3281
- http://poj.org/problem?id=1007
- http://poj.org/problem?id=1840
- 非空闲等待事件
- WP7-触控操作之GestureListener
- K3 二次开发 - 根据物料展开该物料所有的子项物料
- squid cache manager(cachemgr.cgi)配置及使用
- 观察者模式实例代码
- http://poj.org/problem?id=3781&&Nth Largest Value
- oracle scope/sid/deferred/reset 总结说明
- apache 403错误 You don't have permission to access on this server.
- Boost库之function的使用
- Django学习日志——mydoit之表单篇(二)
- Discuz x1.5 – x2版本 二次注射
- ubuntu 挂载Windows分区
- Sql函数返回一个数据集(Table)
- redirect、redirect-action、chain三者的区别!