#abc371a. A - Jiro
A - Jiro
Score : points
问题陈述
有三个兄弟,分别叫做 A
、B
和 C
。他们之间的年龄关系由三个字符 、 和 表示,具体含义如下:
- 如果 是
<
,则表示 比 年轻;如果是>
,则表示 比 年长。 - 如果 是
<
,则表示 比 年轻;如果是>
,则表示 比 年长。 - 如果 是
<
,则表示 比 年轻;如果是>
,则表示 比 年长。
谁是中间的兄弟,即他们三个中第二年长的?
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
There are three brothers named A
, B
, and C
. The age relationships among them are given by three characters , which mean the following:
- If is
<
, then is younger than ; if it is>
, then is older than . - If is
<
, then is younger than ; if it is>
, then is older than . - If is
<
, then is younger than ; if it is>
, then is older than .
Who is the middle brother, that is, the second oldest among the three?
Constraints
- Each of is
<
or>
. - The input contains no contradictions; that is, there always exists an age relationship that satisfies all given inequalities.
Input
The input is given from Standard Input in the following format:
Output
Print the name of the middle brother, that is, the second oldest among the three.
Sample Input 1
< < <
Sample Output 1
B
Since is younger than , and is younger than , we can determine that is the oldest, is the middle, and is the youngest. Hence, the answer is B
.
Sample Input 2
< < >
Sample Output 2
C