POJ2371【水题】
来源:互联网 发布:数据库单引号转义字符 编辑:程序博客网 时间:2024/06/14 05:38
mdzz…
wa了一发,没看清题意,真是智障
//#include <bits/stdc++.h>#include<iostream>#include<string.h>#include<cstdio>#include<algorithm>using namespace std;typedef __int64 LL;const int N=1e5+10;int a[N];int main(){ char ss[10]; int num;// while(1)// {// scanf("%s",ss);// if(strcmp(ss,"###")==0)// break;// int len=strlen(ss);// int x=0;// for(int i=0;i<len;i++)// x=x*10+ss[i]-'0';// a[num++]=x;// } scanf("%d",&num); for(int i=0;i<num;i++) scanf("%d",&a[i]); scanf("%s",ss); sort(a,a+num); int k; scanf("%d",&k); while(k--) { int bb; scanf("%d",&bb); printf("%d\n",a[bb-1]); } return 0;}
0 0
- POJ2371【水题】
- POJ2371
- poj2371
- poj2371
- POJ2371
- POJ2371:Questions and answers
- 1poj2371(简单排序)
- POJ2371#堆排
- 水题
- 水题
- 水题
- 水题
- 【水题】
- 水题
- 水题:
- 水题
- 水题~
- 水题
- HDU 1394稍有变化的线段树
- setValuesForKeysWithDictionary 使用方法
- 你知道实习招聘、秋招、春招是什么吗?
- Android 中自定义分享样式弹窗
- 高精度 大数加法 乘法 除法 幂 模板
- POJ2371【水题】
- 《数据结构与算法》学习笔记4 存储对象的数组和大O表示法
- HDU 1541 stars
- 大四实习还是校招_因为实习要错过秋招
- python学习笔记(七):编码方式
- 百度云使用QQ失败怎么办?
- POJ2367【拓扑排序】
- 关于spring框架中的IOC/DI和AOP,以及声明式事务管理的理解
- LeetCode383. Ransom Note