#79. 极端温度判断
极端温度判断
Temperature Check
Background
Congcong is conducting a scientific experiment. He needs to determine if two given temperatures are in an extreme state. An extreme state is defined as one temperature being below freezing point ( degrees Celsius) and the other being above boiling point ( degrees Celsius).
Problem Description
Given two temperature values, return true if one temperature is less than and the other is greater than , otherwise return false.
Input Format
Input is given from Standard Input in the following format.
temp1 temp2
Output Format
Output to Standard Output in the following format.
result
Sample
120 -1
true
-1 120
true
2 120
false
Sample Explanation
- Sample 1: and . Both conditions are met, so output
true. - Sample 2: and . Both conditions are met, so output
true. - Sample 3: is not less than , although is greater than . Since does not satisfy the condition of being less than , the extreme state definition is not met, so output
false.
Constraints
For all test cases:
- Time Limit: 1s
- Memory Limit: 1024KiB