Program to find shorter angle between hands of a clock at any given time.
Input format
The first line contains the number of test cases T.
Each test case contains two integers h and m representing the time in hour and minute format.
Output format
For each test case on a new line, print the required shorter angle.
Program to find shorter angle between hands of a clock at any given time. Input format The first line contains the number of test cases T. Each test case contains two integers h and m representing the time in hour and minute format.
Output format For each test case on a new line, print the required shorter angle.
Input 2 5 30 6 00 Output 15 180