AtCoder Beginner Contest 137
翻译中…
Problem Statement
翻译中…
We have two integers: $A$ and $B$.
翻译中…
Print the largest number among $A + B$, $A - B$, and $A \times B$.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$-100 \leq A,\ B \leq 100$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B
翻译中…
Output
翻译中…
Print the largest number among $A + B$, $A - B$, and $A \times B$.
翻译中…
样例
Input #1
-13 3
Output #1
-10
The largest number among $A + B = -10$, $A - B = -16$, and $A \times B = -39$ is $-10$.
Input #2
1 -33
Output #2
34
The largest number among $A + B = -32$, $A - B = 34$, and $A \times B = -33$ is $34$.
Input #3
13 3
Output #3
39
The largest number among $A + B = 16$, $A - B = 10$, and $A \times B = 39$ is $39$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。