zoj 3860 Find the Spy
来源:互联网 发布:淘宝修改密码 编辑:程序博客网 时间:2024/05/21 14:55
题意:找出不同的数字。
#include <algorithm>#include<stdio.h>using namespace std;int main(){ int T,n,i,a[105]; scanf("%d",&T); while(T--) { scanf("%d",&n); for(i=0; i<n; i++) { scanf("%d",&a[i]); } sort(a,a+n); if(a[0]==a[1]) printf("%d\n",a[n-1]); else printf("%d\n",a[0]); } return 0;
0 0
- zoj 3860 Find the Spy
- ZOJ 3860: - Find the Spy
- ZOJ Problem Set - 3860Find the Spy (STL-> map 建立简单查询表 )
- ZOJ3860:Find the Spy
- ZOJ3860-Find the Spy
- Find the Spy
- Find the Spy
- ZJU-3860-Find the Spy:get好多小经验
- Find the Marble ZOJ
- ZOJ 3605Find the Marble
- zoj 1530 Find The Multiple
- ZOJ 3605 Find the Marble
- ZOJ 3605Find the Marble
- ZOJ 3605 Find the Marble
- ZOJ 1530 find the multiple 找倍数
- zoj 3432 Find the Lost Sock
- zoj 1530 Find The Multiple(bfs)
- zoj 3432 Find the Lost Sock
- C++ STL使用总结
- ASP.NET MVC 3和Razor中的@helper 语法
- Spring3+MyBatis3整合无法输出SQL语句问题的解决
- phantomjs#2文件模块
- C++ 11 关键字auto
- zoj 3860 Find the Spy
- 数据结构—快速排序模型
- ubuntu 14.04关于gnome配置
- AndroidStudio获取SHA1方法
- Spring3.0.6定时任务task:scheduled
- 欢迎使用CSDN-markdown编辑器
- JavaScript二维数组转置算法
- android listview.onDraw中绘制的内容不在最顶层
- AJAX学习笔记一