CodeForces - 22A Second Order Statistics【水题】
题目链接:https://codeforces.com/contest/22/problem/A
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> v;
int n;
int main()
{scanf("%d",&n);for(int i=0;i<n;i++){int x;scanf("%d",&x);v.push_back(x);}sort(v.begin(),v.end());v.erase(unique(v.begin(),v.end()),v.end());if(v.size()<2) puts("NO");else printf("%d\n",v[1]);return 0;
}
CodeForces - 22A Second Order Statistics【水题】相关推荐
- Codeforces 864 A Fair Game 水题
题目链接: http://codeforces.com/problemset/problem/864/A 题目描述: 看不是是不是一串数中只有两种数且这两种数字的数量是相同的 解题思路: 水题, 水过 ...
- 【CodeForces - 569B】Inventory (水题)
题干: Companies always have a lot of equipment, furniture and other things. All of them should be trac ...
- CodeForces - 1141D Colored Boots(暴力+水题)
题目链接:点击查看 题目大意:给出两个字符串s和t,两个字符串中相同的字母可以匹配,问号可以和任意字符匹配,现在问两个字符串最多能匹配多少个字符,并给出匹配的下标 题目分析:挺好玩的一道水题,大体思路 ...
- codeforces 702A A. Maximum Increase(水题)
题目链接: A. Maximum Increase time limit per test 1 second memory limit per test 256 megabytes input sta ...
- codeforces 667A A. Pouring Rain(水题)
题目链接: A. Pouring Rain time limit per test 1 second memory limit per test 256 megabytes input standar ...
- Codeforces gym 100685 C. Cinderella 水题
C. Cinderella Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100685/problem/ ...
- 【CodeForces - 485A】Factory (水题,抽屉原理,tricks)
题干: One industrial factory is reforming working plan. The director suggested to set a mythical detai ...
- CodeForces - 25A IQ test【水题】
题目链接:https://codeforces.com/contest/25/problem/A #include <iostream> using namespace std; int ...
- UVALive - 3055 Symmetric Order【水题】【STL】
[题目描述] In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have jus ...
最新文章
- NestedScrollView平滑滑动嵌套 Fling
- OC-通知+Block
- oracle ctl file constantnull,Oracle 的一些导入和导出方法
- java编程笔记18 文件压缩与解压缩
- c# 字典排序_Python零基础入门之列表与字典
- archlinux php imagemagick,如何用ImageMagick将SVG转换为PNG?
- 纯英文换行的css,利用CSS实现纯英文数字自动换行
- 骗过70%的人!这个AI能自动给视频配音,真假难辨(不服来试)
- Ruby数组(2):数组方法详细整理
- 3807. 构造字符串——AcWing题库
- Python中re.findall的贪心和非贪心算法
- 酷柚易汛进销存开源版对外接口
- 双目相机:基于双目视觉的目标测距
- 大三学生前端实习经验分享
- 计算机之父童年的故事简介,“计算机之父”童年的故事
- NER依存关系模型:原理,建模及代码实现
- 深度学习环境搭建第一步----Ubuntu 安装(win7 + win10)
- 度用计算机怎么表示什么意思,潘云飞:计算机里讲的耦合度是什么意思?
- 施工企业安全教育培训数字化解决方案
- 有哪些编辑图片加文字的软件?这些软件值得收藏