6 solutions

  • 0
    @ 2024-11-17 10:26:50
    #include <stdio.h>
    
    bool ai(long xa,long xb,long ya,long yb)
    {
        int x=ya/xb;
        if(ya%xb)  x++;
        if(yb-(x-1)*xa>0)
          return true;
        else
          return false;
    }
    int main()
    {
        int t;
        long xa,xb,ya,yb;
        scanf("%d",&t);
        while(t--)
        {
            scanf("%ld",&xa);
            scanf("%ld",&xb);
            scanf("%ld",&ya);
            scanf("%ld",&yb);
            if(ai(xa,xb,ya,yb))
              printf("YES\n");
            else 
              printf("NO\n");
        }
        return 0;
    }
    
    

    A.我只知道,在我心里,比起这个世界,你更重要!

    Information

    ID
    265
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    1125
    Accepted
    136
    Uploaded By