5 solutions

  • 2
    @ 2024-1-27 11:36:33
    #include <iostream>
    #include <algorithm>
    #include <iomanip>
    using namespace std;
    
    int main()
    {
    	int n;
    	cin >> n;
    	if(n % 3 == 0 && n % 5 == 0)	cout << "YES" << endl;
    	else cout << "NO" << endl;
    //	cout << fixed << setprecision(2) << pj << endl;
    	return 0;
    }
    //21
    
    • 1
      @ 2024-1-27 11:36:02
      #include <iostream>
      #include <algorithm>
      #include <iomanip>
      using namespace std;
      
      int main()
      {
      	int n;
      	cin >> n;
      	if(n % 3 == 0 && n % 5 == 0)	cout << "YES" << endl;
      	else cout << "NO" << endl;
      //	cout << fixed << setprecision(2) << pj << endl;
      	return 0;
      }
      //21
      
      • -1
        @ 2023-12-22 21:49:26

        water problem

        #include <bits/stdc++.h>
        using namespace std;
        int a;
        int main(){
        	cin>>a;
        	if(a%3==0&&a%5==0) cout<<"YES";
        	else cout<<"NO";
        }
        
        • -2
          @ 2023-10-5 15:19:20
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
          	int a;
          	cin>>a;
          	if(a%3==0&&a%5==0)cout<<"YES";
          	else cout<<"NO";
          }//Water,do you know?
          
          • -2
            @ 2023-9-16 16:38:00
            using namespace std;
            int main()
            {
            	int a;
            	cin>>a;
            	if(a%3==0&&a%5==0)cout<<"YES";
            	else cout<<"NO";
            } 
            
            • 1

            Information

            ID
            533
            Time
            1000ms
            Memory
            256MiB
            Difficulty
            1
            Tags
            # Submissions
            56
            Accepted
            41
            Uploaded By