2 solutions

  • 1
    @ 2026-5-23 9:15:45

    #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%30&&n%50) { cout<<"YES"; } else { cout<<"NO"; }

    return 0;
    

    }

    • 0
      @ 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;
      }
      
      • 1

      Information

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