Fácil10 pts
Mini-Max Sum
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
Given five positive integers, find the minimum and maximum sums of exactly four of the five. Print: minSum maxSum.
Entrada
One line: five space-separated integers.
Salida
Two space-separated long integers: min and max sum.
Ejemplo
1 2 3 4 5
Esperado
10 14
Loading editor…
Resultado
Sin salida aún. Ejecuta tu código para ver resultados.