#A. 第三大的数

    Type: Default 1000ms 256MiB

第三大的数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

输入 nn 个整数 a1ana_1\sim a_n,请输出其中第 33 大的整数。

输入格式

第一行一个整数 nn

接下来一行 nn 个整数,a1ana_1\sim a_n

输出格式

一行一个整数,即其中第 33 大的整数。

10
1 2 3 4 5 6 7 8 9 10
8
5
3 3 3 3 3
3

数据规模与约定

对于 100%100\% 的数据,3n1033 \le n \le 10^3109ai109-10^9\le a_i\le 10^9

  • 子任务 1(30 分):保证 n=3n=3
  • 子任务 2(30 分):保证所有 aia_i 都相等。
  • 子任务 3(40 分):没有特殊限制。

C++校统测二

Not Attended
Status
Done
Rule
Ledo
Problem
5
Start at
2024-12-20 14:30
End at
2024-12-28 22:30
Duration
200 hour(s)
Host
Partic.
12