HDU2060-Snooker

题目链接: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;
}

猜你喜欢

转载自blog.csdn.net/yimo_180227/article/details/82193632