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