AtCoder Beginner Contest 098
A
Add Sub Mul
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

You are given two integers $A$ and $B$. Find the largest value among $A+B$, $A-B$ and $A \times B$.

翻译中…

Constraints

翻译中…
  • $-1000 \leq A,B \leq 1000$
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

A B

翻译中…

Output

翻译中…

Print the largest value among $A+B$, $A-B$ and $A \times B$.

翻译中…

样例

Input #1
3 1
Output #1
4
$3+1=4$, $3-1=2$ and $3 \times 1=3$. The largest among them is $4$.
Input #2
4 -2
Output #2
6
The largest is $4 - (-2) = 6$.
Input #3
0 0
Output #3
0
题目信息
题号
abc098_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。