AtCoder Beginner Contest 083
翻译中…
Problem Statement
翻译中…
A balance scale tips to the left if $L>R$, where $L$ is the total weight of the masses on the left pan and $R$ is the total weight of the masses on the right pan. Similarly, it balances if $L=R$, and tips to the right if $L<R$.
翻译中…
Takahashi placed a mass of weight $A$ and a mass of weight $B$ on the left pan of a balance scale, and placed a mass of weight $C$ and a mass of weight $D$ on the right pan.
翻译中…
Print Left if the balance scale tips to the left; print Balanced if it balances; print Right if it tips to the right.
翻译中…
Constraints
翻译中…
$1\leq A,B,C,D \leq 10$- All input values are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B C D
翻译中…
Output
翻译中…
Print Left if the balance scale tips to the left; print Balanced if it balances; print Right if it tips to the right.
翻译中…
样例
Input #1
3 8 7 1
Output #1
Left
The total weight of the masses on the left pan is $11$, and the total weight of the masses on the right pan is $8$. Since $11>8$, we should print `Left`.
Input #2
3 4 5 2
Output #2
Balanced
The total weight of the masses on the left pan is $7$, and the total weight of the masses on the right pan is $7$. Since $7=7$, we should print `Balanced`.
Input #3
1 7 6 4
Output #3
Right
The total weight of the masses on the left pan is $8$, and the total weight of the masses on the right pan is $10$. Since $8<10$, we should print `Right`.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。