3 条题解

  • 1
    @ 2023-10-1 11:12:00
    #include<iostream>
    using namespace std;
    int main(){
        int a;
        cin >> a;
        if(a%15==0){
            cout << "YES";
        }else{
            cout << "NO";
        }
        return 0;
    }
    
    • 0
      @ 2023-10-22 11:21:37

      众所周知, 35=153*5=15

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int n;
          cin>>n;
          if(n%15==0) cout<<"YES";
          else cout<<"NO";
          return 0;
      }
      
      • 0
        @ 2022-5-25 22:45:27
        #include<bits/stdc++.h>
        using namespace std;
        long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
        string s;
        long long a[100000],as[100000],asd[100000];
        char cc;
        double dd;
        int main()
        {
        	cin>>x;
        	if(x%15==0)
        	cout<<"YES";
        	else cout<<"NO";
            return 0;
        }
        
        • 1

        判断一个数能否同时被 3 和 5 整除

        信息

        ID
        6854
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        62
        已通过
        49
        上传者