Author: | NEERC 2000-2001 | Time limit: | 4 sec | |
Input file: | input.txt | Memory limit: | 64 Mb | |
Output file: | output.txt |
Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast as possible as a whole. The first section is swimming, the second section is riding bicycle and the third one is running. The speed of each contestant in all three sections is known. The judge can choose the length of each section arbitrarily provided that no section has zero length. As a result sometimes she could choose their lengths in such a way that some particular contestant would win the competition.
The first line of the input file contains integer number N, denoting the number of contestants. Then N lines follow, each line contains three integers Vi, Ui and Wi, separated by spaces, denoting the speed of i-th contestant in each section.
For every contestant write to the output file one line, that contains word "Yes" if the judge could choose the lengths of the sections in such a way that this particular contestant would win (i.e. she is the only one who would come first), or word "No" if this is impossible.
1 ≤ N ≤ 100
1 ≤ Vi, Ui, Wi ≤ 10000
No. | Input file (input.txt ) |
Output file (output.txt ) |
---|---|---|
1 |
|
|