Problem 2718 --Computation - Min, Max and Sum

2718: Computation - Min, Max and Sum

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $860$ 正确数量 $555$
裁判形式 标准裁判/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.

In the first line, an integer n is given. In the next line, n integers ai are given in a line.
Print the minimum value, maximum value and sum in a line. Put a single space between the values.
5
10 1 5 4 17
1 17 37

0<n<=10000

-1000000<=ai<=1000000

推荐代码 查看2718 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$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

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛
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 请登录
1564 2020-2021-1学期《C语言程序设计》:循环结构I【20计算机12345】 2020-10-23 10:00:00 请登录
1551 2020-2021-1学期《Python程序设计》循环和列表【20数据科学12班】 2020-10-22 10:00:00 请登录