5101: A + B是否溢出 II
[Creator : ]
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.
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