#P1400. three numbers and two operators
three numbers and two operators
Problem Description
Given any three integers, an expression is obtained by inserting a multiplication sign and a plus sign into the three numbers.Find the maximum and minimum of this expression. (The three numbers can be interchanged.)
Input Format
Each group of data consists of one row, including three integers until the end of input 0 0 0.Output Format
Each group outputs the maximum and minimum values, separated by spaces in the middle, and each group takes one row.1 2 3
1 1 1
0 0 07 5
2 2
Source
18级新生赛-3相关
在下列比赛中: