Given two version numbers, compare them.
A version number consists of one or more revisions connected by a dot.
Each revisions consists of digits and may contain leading zeroes. Each revision consists atleast one digit.
Revisions are 0-indexed from left to right.
To compare two versions, compare revisions in the left-to-right order. Revisions are compared using their integer value ignoring any leading zeroes.
version 1: 1.1.0
version 2: 1.2.0
version 2 > version 1.
version 1: 1.001.2
version 2: 1.1.2
version 2 = version 1.
version 1: 1.100.2
version 2: 1.1.2
version 2 < version 1.
version 1: 1.2.1.1
version 2: 1.2
version 2 < version 1.
The first line contains an integer âTâ denoting the number of test cases.
For each test case, the input has two lines:
version1.version2.For each test case, the output has a lines with the value:
version1 > version2.version1 < version2.version1 = version2.5
2.3.01
2.4.01
1.1.1
1.1.1
3.3.001
3.3.1
4.4.1
4.3.1
2.3.0
2.3
-1
0
0
1
0
1 <= T <= 100
1 <= version1.size, version2.size <= 104