题目链接:1144 The Missing Number (20 point(s))

Description

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.

Input Specification

Each input file contains one test case. For each case, the first line gives a positive integer N (≤10​5​​). Then N integers are given in the next line, separated by spaces. All the numbers are in the range of int.

Output Specification

Print in a line the smallest positive integer that is missing from the input list.

Sample Input

10
5 -25 9 6 1 3 4 2 5 17

Sample Output

7

分析

最新文章

  1. session生命周期
  2. gitlab配置和搭建 ssh
  3. Push failed: Failed with error: fatal: Could not read from remote repository.
  4. linux进程的几种状态
  5. CentOS 6.7增加SWAP交换分区
  6. C#01
  7. getpwent()
  8. Spring2.0集成Quartz1.5.2调度框架
  9. MVC EF 修改 封装类 通用泛型方法(一)
  10. Python基础之列表
  11. HDU 1079 Calendar Game 博弈
  12. 利用GeoIP数据库及API进行地理定位查询 Java
  13. LOJ #6050. 「雅礼集训 2017 Day11」TRI
  14. 解析高德地图api获取省市区,生成最新三级联动sql表
  15. C#3.0智能的编译器
  16. Go语言学习笔记(六) [包]
  17. 动态规划 - 213. House Robber II
  18. 转的,具体 https://www.cnblogs.com/icyJ/p/FreeShare.html
  19. Alpha事后诸葛亮(团队)
  20. linux基础教程---内容操作

热门文章

  1. springMvc---WebMvcConfigurationSupport
  2. css中的浮动与定位
  3. [spring-boot] 健康状况监控
  4. 创建加载bean的实例
  5. Qt类关系一览表
  6. python清理docker-harbor的多余镜像
  7. 【转载】 linux dig 命令使用方法
  8. asp设置cookies过期时间
  9. Flutter利用GridView实现网格的商品布局
  10. Flutter Navigator&Router(导航与路由)