题目链接: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【水题】相关推荐

  1. Codeforces 864 A Fair Game 水题

    题目链接: http://codeforces.com/problemset/problem/864/A 题目描述: 看不是是不是一串数中只有两种数且这两种数字的数量是相同的 解题思路: 水题, 水过 ...

  2. 【CodeForces - 569B】Inventory (水题)

    题干: Companies always have a lot of equipment, furniture and other things. All of them should be trac ...

  3. CodeForces - 1141D Colored Boots(暴力+水题)

    题目链接:点击查看 题目大意:给出两个字符串s和t,两个字符串中相同的字母可以匹配,问号可以和任意字符匹配,现在问两个字符串最多能匹配多少个字符,并给出匹配的下标 题目分析:挺好玩的一道水题,大体思路 ...

  4. codeforces 702A A. Maximum Increase(水题)

    题目链接: A. Maximum Increase time limit per test 1 second memory limit per test 256 megabytes input sta ...

  5. codeforces 667A A. Pouring Rain(水题)

    题目链接: A. Pouring Rain time limit per test 1 second memory limit per test 256 megabytes input standar ...

  6. Codeforces gym 100685 C. Cinderella 水题

    C. Cinderella Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100685/problem/ ...

  7. 【CodeForces - 485A】Factory (水题,抽屉原理,tricks)

    题干: One industrial factory is reforming working plan. The director suggested to set a mythical detai ...

  8. CodeForces - 25A IQ test【水题】

    题目链接:https://codeforces.com/contest/25/problem/A #include <iostream> using namespace std; int ...

  9. UVALive - 3055 Symmetric Order【水题】【STL】

    [题目描述] In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have jus ...

最新文章

  1. NestedScrollView平滑滑动嵌套 Fling
  2. OC-通知+Block
  3. oracle ctl file constantnull,Oracle 的一些导入和导出方法
  4. java编程笔记18 文件压缩与解压缩
  5. c# 字典排序_Python零基础入门之列表与字典
  6. archlinux php imagemagick,如何用ImageMagick将SVG转换为PNG?
  7. 纯英文换行的css,利用CSS实现纯英文数字自动换行
  8. 骗过70%的人!这个AI能自动给视频配音,真假难辨(不服来试)
  9. Ruby数组(2):数组方法详细整理
  10. 3807. 构造字符串——AcWing题库
  11. Python中re.findall的贪心和非贪心算法
  12. 酷柚易汛进销存开源版对外接口
  13. 双目相机:基于双目视觉的目标测距
  14. 大三学生前端实习经验分享
  15. 计算机之父童年的故事简介,“计算机之父”童年的故事
  16. NER依存关系模型:原理,建模及代码实现
  17. 深度学习环境搭建第一步----Ubuntu 安装(win7 + win10)
  18. 度用计算机怎么表示什么意思,潘云飞:计算机里讲的耦合度是什么意思?
  19. 施工企业安全教育培训数字化解决方案
  20. 有哪些编辑图片加文字的软件?这些软件值得收藏

热门文章

  1. 13 面向对象-继承与抽象类
  2. CAD计算器怎么调出来?CAD计算器应用技巧
  3. 数字经济之新零售行动派:鸡毛换糖走向数智化
  4. Linux下的文本网页浏览器
  5. linuxCPU负载类比知识
  6. 电商平台OnBuy选品技巧分享一二
  7. 爬取《你好,李焕英》影评,并生成词云图
  8. 回归分析预测技术介绍
  9. 自考 02326 操作系统 综合题整理
  10. single dog