0
点赞
收藏
分享

微信扫一扫

Duplicate Number(翻译)

冶炼厂小练 2022-02-10 阅读 56
c++

http://noi.openjudge.cn/english/19/

描述

Given a sequence of N numbers, find a number A that the count of A in the sequence is at least two.

输入

First line: one positive integer N (N <= 1000).
Second line: N positive integers (<= 1000000).

输出

One integer A.

                                  重复数

描述:

给定一个具有N个数字的序列,找到一个数字A,该数字A在序列中的出现次数至少为2

输入:

第一行:一个正整数NN <= 1000

第二行:N个正整数(<= 1000000).

输出:

一个整数A

举报

相关推荐

0 条评论