Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 321 Bytes

File metadata and controls

9 lines (6 loc) · 321 Bytes

Minimum and Maximum Algorithm

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.

Input:

[1,2,3,4,5]

Output

10 14