Min-Max-Sum

0

0 votes
Easy
Problem

Aubrey needs to find the smallest and largest values in a given list of five numbers. Moreover, he needs to add them.

INPUT FORMAT

Input consists of five integers whose values are from 1 - 100.

OUTPUT FORMAT

Output the minimum, the maximum, and their sum. Separate the values by a single space. 

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?