問題一覧 > 通常問題

No.570 Three Brothers (Part 1)

レベル : / AI推定難易度 : 104 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 591
作問者 : nmnmnmnmnmnmnm / テスター : Nafmo2
お気に入りにしたユーザー ProblemId : 1340 / 自分の提出
問題文最終更新日: 2026-06-25 01:31:51
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 174 (順位表) の他の問題:

Problem Statement

A, B, and C are three brothers.
The three brothers' household has the following rule.

・The taller one is the superior one.

Given the heights of A, B, and C, arrange them in order from most superior to least superior.

※ Note that no two different brothers among the three have the same height.

Input

$H_A$
$H_B$
$H_C$

$H_A$ is A's height. The value is always an integer. $150 \le H_A \le 200$.
$H_B$ is B's height. The value is always an integer. $150 \le H_B \le 200$.
$H_C$ is C's height. The value is always an integer. $150 \le H_C \le 200$.
No two different brothers among the three have the same height.

Output

Output 'A' for A, 'B' for B, and 'C' for C on three lines from top to bottom, in order from most superior to least superior.
Print a newline at the end of the last line as well.

Sample

Sample 1
Input
170
180
160
Output
B
A
C

B, who is the tallest, is the most superior.
A, who is the next tallest, is the second most superior.
C, who is the shortest, is third.

Sample 2
Input
190
180
170
Output
A
B
C

A, who is the tallest, is the most superior.
B, who is the next tallest, is the second most superior.
C, who is the shortest, is third.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。