12 hour clock Multiplication
School Accuracy: 38.18% Submissions: 2722 Points: 0

Given two positive integers num1 and num2, the task is to find the product of the two numbers on a 12 hour clock rather than a number line.

Input
First line of the input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line containing two integers separated by a space .

Output
Corresponding to each test case, print the difference in a new line.

Constraints:
1 <=T <= 100
1 <= num1 <= 1000
1 <= num2 <= 1000

Example:
input
1
2 3
3 5

Output
6
3

 

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.