4 solutions

  • 0
    @ 2025-7-4 10:40:06
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b;
        cin>>a>>b;
        if(a%b==0||b%a==0) cout<<"yes";
        else cout<<"no";
        return 0;
    }
    

    Information

    ID
    23
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    138
    Accepted
    72
    Uploaded By