题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2060
#include<iostream>
#include<cstdio>
using namespace std;
int d[25]={0,7,13,18,22,25,27,35,43,51,59,67,75,83,91,99,107,115,123,131,139,140};
int main(){
int t,s,n,m;
scanf("%d",&t);
while(t--){
scanf("%d%d%d",&s,&n,&m);
if((d[s]+n)>=m)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}