Back
Close

Getting Hot in Here

Statement

 Goal

Ben and Tom send messages to you describing the temperature in their respective countries.
Ben lives in the USA
Tom lives in the UK
Ben uses Fahrenheit
Tom uses Celsius

Ben and Tom will send you their inputs as one integer each b and t, separated by a space. There will be n such lines of inputs.
For each line, output the string "Higher" if Ben's temperature is higher than Tom's, and output the string "Lower" if Ben's temperature is lower than Tom's. If the temperatures are the same output the string "Same".

Conversion from C Celsius to F Fahrenheit follows the formula C x 9 / 5 + 32 = F
Input
First line: integer n for the number of inputs that will be received.
Next n lines: two integers b and t separated by a space.
Output
n lines: Strings indicating if the Fahrenheit temperature in the first value is "Higher", "Lower", or the "Same" as the Celsius temperature in the second value.
Constraints
0 < n < 100
-273 <= b, t <= 300
Example
Input
3
5 -14
5 -15
5 -16
Output
Lower
Same
Higher

Game modes
Fastest, Shortest

Test cases
Test 1 Test
Input
3 5 -14 5 -15 5 -16
Output
Lower Same Higher

Validator 1 Validator
Input
1 -4 -20
Output
Same

Test 2 Test
Input
1 -40 -40
Output
Same

Validator 2 Validator
Input
3 14 -9 14 -10 14 -11
Output
Lower Same Higher

Test 3 Test
Input
3 51 10 49 10 50 10
Output
Higher Lower Same

Validator 3 Validator
Input
3 250 120 240 120 248 120
Output
Higher Lower Same

Test 4 Test
Input
1 32 0
Output
Same

Validator 4 Validator
Input
1 212 100
Output
Same

Solution language

Solution

Stub generator input