mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
24 lines
428 B
C++
24 lines
428 B
C++
|
#include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int T;
|
||
|
int num,a,b;
|
||
|
while(~scanf("%d",&T))
|
||
|
{
|
||
|
while(T--)
|
||
|
{
|
||
|
scanf("%d %d %d",&num,&a,&b);
|
||
|
if(num >= 6)
|
||
|
{
|
||
|
a+= num * 8 - 21;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
a+= (15-num)*num/2;
|
||
|
}
|
||
|
a>=b?puts("Yes"):puts("No");
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|