E. three numbers and two operators

    传统题 1000ms 128MiB

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 0
7 5
2 2

Source

18级新生赛-3

2018级河南工大新生周赛(三)@陈帅专场

未参加
状态
已结束
规则
XCPC
题目
6
开始于
2018-11-7 3:00
结束于
2018-11-7 5:00
持续时间
2 小时
主持人
参赛人数
351