第三大的数

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 分):没有特殊限制。

加积分训练题单【周】

Not Claimed
Status
Done
Problem
27
Open Since
2026-5-15 0:00
Deadline
2026-6-30 23:59
Extension
120 hour(s)