Larger Sport Facility
InterviewTime limit2sMemory limit512 MB
Compare the areas of two rectangular sports fields and print which school's field is larger or that it is a tie.
- Level
Easy2 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
In many parts of the world, elite universities come in pairs, and their students like to challenge each other every year. In England, Oxford and Cambridge are famous for The Boat Race, an annual rowing race between them. In Switzerland, students from Zürich and Lausanne compete in a famous annual ski challenge.
TelecomParisTech and Eurecom, two famous French schools, are also planning to hold a multi-sport tournament. They have already agreed on the choice of sports and the rules of the game; the only point of disagreement is where the contest should be hosted. Every school has been bragging for years about the wonderful sport facilities it has.
At last, it was agreed that the competition would be hosted at the school with the larger rectangular sports field. The only thing left is to determine which school this is: given the size of the fields, find the school with the field of larger surface.
Input
The input consists of several test cases. The first line contains an integer giving the number of test cases. Each test case follows. Each test case is a single line containing 4 integers 1 ≤ lt, wt, le, we ≤ 109 separated by single spaces: lt and wt are the length and width of the sports field of TelecomParisTech, and le and we are the length and width of the sports field at Eurecom.
Output
For each test case in the input, your program should produce one line. The line should contain the name of the school with the larger area: TelecomParisTech or Eurecom. In case of a tie, the line should contain Tie. There should be no blank lines in your output.