Canadian Computing Competition: 2013 Stage 1, Senior #4
You have a few minutes before your class starts, and you decide to compare the heights of your classmates. You don't have an accurate measuring device, so you just compare relative heights between two people: you stand two people back-to-back, and determine which one of the two is taller. Conveniently, none of your classmates are the same height, and you always compare correctly (i.e., you never make a mistake in your comparisons).
After you have done all of your comparisons, you would like to determine who the tallest person is between two particular classmates.
Input Specification
The first line contains two integers
An additional subtask worth 5 marks has been added to break incorrect solutions which AC on official test data. Data provided by
and .Output Specification
The output is one line, containing one of three possible strings:
- yes (if
is taller than ), - no (if
is taller than ), - unknown (if there is not enough information to determine the relative heights of
and ).
Sample Input 1
10 3
8 4
3 8
4 2
3 2
Output for Sample Input 1
yes
Sample Input 2
10 3
3 8
2 8
3 4
3 2
Output for Sample Input 2
unknown
Comments
This comment is hidden due to too much negative feedback. Show it anyway.