2 solutions

  • 1
    @ 2024-7-17 19:00:36
    #include <bits/stdc++.h>
    using namespace std;
    int main ()
    {
        int n;
        cin>>n;
        if (n%3==0 && n%5==0)
        {
            cout<<"YES";
        }
        else
        {
            cout<<"NO";
        }
        return 0;
    }
    

    Information

    ID
    859
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    163
    Accepted
    69
    Uploaded By