@root 求助

wc0222 2025-08-11 19:57:02 4

#include <bits/stdc++.h> using namespace std; int main() { int a, b, i, j, n; b = 0; while (cin >> i) { for (n = 2; n <= i-1; n++) { if (i % n == 0) b++; } if (b == 1) cout << "YES" << endl; else cout << "NO" << endl; b = 0; } } 为什么错了?(没有爆空间就是单纯的错了)

{{ vote && vote.total.up }}

共 1 条回复

root 站长

因为 仔细读题哦