| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 5 | 3 | 3 | 60.000% |
Let's consider equalities and inequalities between the numbers $a,ドル $b,ドル and $c$. The relationships between the numbers can be expressed as a 3ドル \times 3$ table, with two characters for each pair $(x, y)$ denoting their relationship as '<<', '≤', '==', '>=', '>>' ($x < y,ドル $x \le y,ドル $x = y,ドル $x \ge y,ドル $x > y,ドル respectively), or '??' (if the relationship is not known and can't be deduced from the known ones).
The input contains two known equalities or inequalities and the program must fill the table with the strongest relationships that can be deduced from the input. This means that if it is possible to deduce that $x < y$ then the program must output '<<' in the corresponding cell of the table, and not '≤', even though $x \le y$ also holds.
The two lines of input each contain one relationship (equality or inequality).
The output should contain exactly three lines of the table, where each cell of the table contains the strongest possible relationship that can be deduced, with the cells on each line spearated by spaces, or the message 'VASTUOLU', denoting a contradiction in the input.
a<=b b<<c
== <= << >= == << >> >> ==
If $a \le b$ and $b < c,ドル as given in the input, then also $a < c$. If $a \le b,ドル then $b \ge a$; if $b < c,ドル then $c > b$; if $a < c,ドル then $c > a$. In any case $a = a,ドル $b = b,ドル and $c = c$. Writing all these results in the table, we get the given output.
a<<b b<=a
VASTUOLU
It's not possible that $a < b$ and at the same time $b \le a$ (or $a \ge b$).