【OJ】Ants acmclub.com 10913 // poj 1852
来源:互联网 发布:淘宝助理二次验证取消 编辑:程序博客网 时间:2024/06/07 19:41
#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int shu[1000010];int main(){ int i,a,b; while(scanf("%d %d",&a,&b)!=EOF){ for( i=0;i<a;i++) scanf("%d",&shu[i]); sort(shu,shu+a); while(--b) printf("%d ",shu[--i]); printf("%d\n",shu[--i]); } return 0;}
0 0
- 【OJ】Ants acmclub.com 10913 // poj 1852
- 【OJ】Lake Counting (Poj 2386 // hzu.acmclub.com 11448)
- 【OJ】Red and black poj1979 // acmclub.com 6659
- 【OJ】贪心法 Saruman's Army POJ 3069 /acmclub 12132
- poj 1852 Ants
- POJ 1852 Ants
- poj 1852Ants
- POJ 1852 Ants 蚂蚁
- POJ 1852 Ants
- POJ 1852 Ants
- POJ-1852-Ants
- POJ 1852 Ants
- [ACM] POJ 1852 Ants
- POJ 1852 Ants
- POJ 1852 Ants 模拟
- POJ 1852 ANTS
- poj 1852 ants
- POJ 1852 Ants
- OCP-1Z0-051 补充题库 第38题 nvl用法
- 黑马程序员———Java的基础语法和数据类型、数组
- Hibernate + Proxool配置 并监控proxool连接池
- rand(),srand()产生随机数
- 有道面试 第三天 —— 杭州小记 五
- 【OJ】Ants acmclub.com 10913 // poj 1852
- 目标黑马,我的自学之路:第八章 集合框架之Collection
- PAT 06-3. 单词长度
- 淘宝logo
- css
- OCP-1Z0-051 补充题库 第39题 日期运算
- 最大连续子序列的和
- 纪念性的一天——博客开通第一天
- 5.非关系型数据库(Nosql)之mongodb:创建集合,备份与导入导出, 数据还原,导入导出