5 solutions

  • 1
    @ 2022-12-16 17:05:30
    #include<iostream>
    using namespace std;
    int main() {
        int T;
        cin >> T;
        while (T--) {
            int Xa, Ya, Xb, Yb, n;
            cin >> Xa >> Xb >> Ya >> Yb;
            if (Yb % Xa == 0) {
                n = Yb / Xa;
            }
            else
                n = Yb / Xa+1;
            if (n * Xb >= Ya) cout << "YES" << endl;
            else cout << "NO" << endl;
        }
        return 0;
    }
    

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

    Information

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