問題一覧 > 通常問題

No.293 The World Where 4>7

レベル : / AI推定難易度 : 167 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 420
作問者 : nmnmnmnmnmnmnm / テスター : uwi
お気に入りにしたユーザー ProblemId : 728 / 自分の提出
問題文最終更新日: 2026-06-28 11:04:54
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 124 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。