Have you ever thought about comparing the weight of fruits? That's what you should do in this problem! Given a series of fruit weight comparisons, you should anticipate the result of another comparison. In this problem, all fruits of the same kind are identical and have the same weights. Each fruit weight comparison is something like ``<!-- MATH
$a \ X \le b \ Y$
-->
a X<=b Y
The input contains multiple test cases. Each test case starts with a line containing n
<!-- MATH
<!-- MATH
$a \ X \ b \ Y$
-->
<span class="MATH"><i>a</i> <i>X</i> <i>b</i> <i>Y</i></span>
<tex2html_verbatim_mark>" meaning that
$a \ X \le b \ Y$
-->
a X<=b Y
<!-- MATH
a X
$a \ X \ b \ Y$
-->
<span class="MATH"><i>a</i> <i>X</i> <i>b</i> <i>Y</i></span>
<tex2html_verbatim_mark>" inquiring the comparison of
A case of n = 0
For each test case, write one line with your result for that test case. Your result can be one of the followings (assume the comparison query was ``<!-- MATH
$a \ X \ b \ Y$
-->
a X b Y
<tt><=</tt>": meaning you are sure that
<!-- MATHa X<=b Y
<tt>>=</tt>": meaning you are sure that
<!-- MATH<tt>==</tt>": meaning you are sure that
<!-- MATH<tt>UNAVAILABLE</tt>": meaning that you can say nothing for sure in comparing
a X
<span class="MATH"><i>b</i> <i>Y</i></span>
INCONSISTENT": meaning that there is an inconsistency in the given comparisons (i.e. you are sure that all the given comparisons for
<tex2html_verbatim_mark>" (i.e. you have reached none of the above results).
</tex2html_verbatim_mark></tex2html_verbatim_mark></li>
<li>
that test case cannot hold at the same time).
Migrated from old NTUJ.
ICPC Tehran, 2008
No. | Testdata Range | Score |
---|