2 solutions

  • 0
    @ 2024-9-21 11:07:04
    
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int m,k;
        cin>>m>>k;
        while(m%19!=0 && m/3!=k)
        {
            if(m%19==0 && m/3==k) cout<<"YES";
            else cout<<"NO";
            m++;
        }    
        return 0;
    }
    

    Information

    ID
    430
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    4
    Accepted
    3
    Uploaded By