3 条题解

  • 1
    @ 2026-6-2 21:09:40

    其实模15就行了

    using namespace std;
    
       int main() {
    	int a;
    	cin<<a;
    	if(a%15==0){
    		cout<<"YES";
    	}else{
    		cout<<"NO";
    	}
    
    	return 0;
    }
    
    
    

    纯属偷懒

    • -1
      @ 2026-5-23 15:34:47

      #include <bits/stdc++.h> using namespace std;

      int main() { long long n; cin >> n; if (n % 3 == 0 && n % 5 == 0) { cout << "YES"; } else { cout << "NO"; } return 0; }

      • -1
        @ 2026-5-23 11:39:12

        #include <bits/stdc++.h> using namespace std;

        int main() { int n; cin >> n; if (n%3==0) { cout << "YES"; } else { cout << "NO"; } return 0; }

        • @ 2026-5-23 11:41:13

          这个是错的,对的是 #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; }

        • @ 2026-6-7 10:07:50
          ## @ 不成哦

          成成的

      • 1

      信息

      ID
      30928
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      (无)
      递交数
      143
      已通过
      62
      上传者