Is it must be very yearning college school students into the workplace, be a glorious programmers, and then show their code capability, get the appreciation of the boss, marry Bai Fu beauty, become the CEO took to the peak of life, from now on... Ahem, digress, but small A classmate have the dream, day, night dream, finally small A classmate dreamt that he graduated from the university to become A glorious programmer, applying into A well-known company to move brick, brick moved to have salary, in with the boss to discuss salary, thought in the book read "China Wang Shang doesn't m" (didn't read the classmate don't be afraid of, at the bottom of this page has an entire article, you can read it), by the way, in my heart, to the boss said: not so, my first day as long as 1 piece wage, then pay every day is A day before two times, is the first five days of salary is 1,2,4,8,16 piece respectively, hearing this, the boss was too expensive, so happily determines, and wise you must know that because of double every day, until the small A classmate behind the salary is A terrorist, but some small day A classmate in front of the salary is really low, are not enough to have A meal, as the saying goes, people is iron rice is steel, A meal not eat hungry of panic, small A classmate probably didn't wait until to peak was hungry the glorious sacrifice in life, if one day the small A classmate to eat meal, the glorious sacrifice, he becomes
Now set meal price is a yuan, and small classmate already have b yuan, can small a classmate dreamed that he took to the peak (is that there is no sacrifice) life at the moment?
enter
The first line of a digital t (0 & lt; T<=1000), on behalf of the test data on the number of groups, followed by a group t test data, the two Numbers in each group a, b, represent the price of rice and small a classmate's initial capital b, test data, ensure a, b are between [1100] 000,
O
If small A classmate can dream about the day he walked towards the peak of life, please output A "YES", otherwise please output A "NO", each output A line,
sample input
2
100 1
2 100
sample output
[/code]NO
YES
# include
# include
using namespace std;
The main ()
{
Int t, I;
Double a, b, s, x=1.0;
Cin> t;
for(i=1; i<=t; I++)
{
Cin> a> b;
S=b;
While (x{
S=s + x - a;
X=x * 2.0;
If (s<0) break;
}
If (s<0) cout<& lt;" NO "& lt;If (s>=0) cout<& lt;" YES "& lt;
}
}
# include
# include
using namespace std;
The main ()
{
Int t, I, a, b, s, j=0;
Cin> t;
for(i=0; i{
Cin> a> b;
S=b;
for(j=0; J<=a; J++)
{
S=s + pow (2, j) - a;
If (s<0) break;
}
If (s<0) cout<& lt;" NO "& lt;If (s>=0) cout<& lt;" YES "& lt;
}
}