No.293 The World Where 4>7
タグ : / 解いたユーザー数 420
作問者 :
nmnmnmnmnmnmnm
/ テスター :
Problem Statement
In a certain world, numbers are handled in base 10, just as humans on Earth use them.
However, there is one difference: only when comparing the digits 4 and 7, 4 is greater than 7.
Given distinct integers $A$ and $B$, answer which number is greater in this world.
This does not simply mean that 4 and 7 are swapped. You may consider that transitivity does not hold for numbers in this world.
However, comparison of the number of digits is the same as the judgment used by humans on Earth.
Input
$A$ $B$
$A$ and $B$ are distinct integers.
$0 \le A \le 2000000000$.
$0 \le B \le 2000000000$.
Output
Output the greater number of $A$ and $B$ on one line.
Do not forget the newline at the end.
Sample
Sample 1
Input
4 7
Output
4
Between 4 and 7, 4 is greater. Obviously.
Sample 2
Input
5 7
Output
7
Between 5 and 7, 7 is greater, of course.
Sample 3
Input
40 170
Output
170
A 3-digit integer is greater than a 2-digit integer, of course.
Sample 4
Input
1237564890 1234567890
Output
1234567890
As a problem, this is a little too easy, isn't it.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。