Min, Max and Sum
Write a program which reads a sequence of n integers ai(i=1,2,...n), and prints the minimum value, maximum value and sum of the sequence.
| Time Limit | $1$ 秒/Second(s) | Memory Limit | $512$ 兆字节/Megabyte(s) |
| 提交总数 | $1140$ | 正确数量 | $704$ | "
| 裁判形式 | 标准裁判/Standard Judge | 我的状态 | 尚未尝试 |
| 难度 | 分类标签 | STL STL |
Min, Max and Sum
Write a program which reads a sequence of n integers ai(i=1,2,...n), and prints the minimum value, maximum value and sum of the sequence.
5
10 1 5 4 17
1 17 37
0<n<=10000
-1000000<=ai<=1000000
| 本题记录 | 用 户(点击查看用户) | 运行号(点击购买题解) | 时 间 |
|---|---|---|---|
| 算法最快[$0 $ms] | 梦尘 | 696288 | 2020-12-31 14:08:36 |
| 内存最少[$0 $KB] | 睡醒了再码 | 508959 | 2019-10-27 16:24:40 |
| 第一AC | 却又像风捉摸不住 | 303354 | 2018-11-03 14:52:18 |
| 第一挑战 | 却又像风捉摸不住 | 303354 | 2018-11-03 14:52:18 |
| 竞赛编号 | 竞赛名称 | 竞赛时间 | 访问比赛 |
|---|---|---|---|
| 1880 | 2025-2026-1学期《C语言程序设计》:循环结构I【25计算机】 | 2025-10-27 08:00:00 | 请登录 |
| 1838 | 2024-2025-1学期《C语言程序设计》:循环结构I【24计算机】 | 2024-10-24 00:00:00 | 请登录 |
| 1775 | 2023-2024-1学期《C语言程序设计》:循环结构I【23计算机】 | 2023-10-23 00:00:00 | 请登录 |
| 1718 | 2022-2023-1学期《C语言程序设计》:循环结构I【22计算机】 | 2022-10-24 08:00:00 | 请登录 |
| 1660 | 2021-2022-1学期《C语言程序设计》:循环结构I【21计算机】 | 2021-10-25 00:00:00 | 请登录 |