6 solutions

  • 0
    @ 2024-12-8 21:44:05

    #include <stdio.h> int pk(long long Xa,long long Xb,long long Ya,long long Yb) { long long Yayi = (Ya + Xb - 1) / Xb; long long Qiyana = (Yb + Xa - 1) / Xa; return (Yayi <= Qiyana); } int main() { int T; scanf("%d", &T); for (int i = 0; i < T; i++) { long long Xa, Xb, Ya, Yb; scanf("%lld %lld %lld %lld", &Xa, &Xb, &Ya, &Yb); if(pk(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