No.570 Three Brothers (Part 1)
タグ : / 解いたユーザー数 591
作問者 :
nmnmnmnmnmnmnm
/ テスター :
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もしくは右上の雲マークをクリックしてアカウントを作成してください。