Problem5101--A + B是否溢出 II

5101: A + B是否溢出 II

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Judge whether the sum of A and B will exceed the range of 32-bit signed integer.

Input

There are multiple test cases. The first line of each test case is a positive integer T, indicating the number of test cases.
For each test case, there is only one line including two 32-bit signed integers A and B.

Output

For each test case, output one line. If the sum of A and B will exceed the range of integer, print "Yes", else print "No".

Sample 1 Input

3
1 2 
-2147483648 2147483647
2147483647 2147483647

Sample 1 Output

No
No
Yes

Source/Category

C++语法 1.3.控制结构