//相等时算胜利
#include<iostream>
using namespace std;
int ch[25] = {0, 7, 13, 18, 22, 25, 27};
void calc()
{
int i;
for(i = 7; i < 25; i++)
{
ch[i] = ch[i-1] + 8;
}
}
int main()
{
int n;
calc();
scanf("%d", &n);
while(n--)
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(ch[a] + b >= c)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}
hdu 2060 snooker
最新推荐文章于 2019-07-18 15:08:56 发布