2025区赛 温度记录(temp)
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.
【题目描述】
某地连续 N 天进行气温观测,每天记录一个整数温度(单位:℃,可能为负数)。
请你统计:
这段时间里的最高气温;
这段时间里的最低气温;
第一次出现最高气温的那一天是第几天(从 1 开始编号)。
【输入格式】
第一行一个整数 N(1 ≤ N ≤ 365)。
第二行 N 个整数,表示每天的气温,范围为 -50..50。 对于100%的数据,1<=N<=365
【输出格式】
输出三个整数:最高气温 最低气温 最高气温第一次出现的那一天是第几天。
【输入样例1】
5
-1 3 5 2 5
【输出样例1】
5 -1 3
【样例解释】
无
2025年区赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2026-1-13 21:00
- End at
- 2026-4-7 5:00
- Duration
- 2000 hour(s)
- Host
- Partic.
- 16