Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112088 | 何松羽 | 100至200之间的所有素数 | C++ | Output Limit Exceeded | 12 MS | 264 KB | 394 | 2025-03-08 13:16:16 |
#include<bits/stdc++.h> using namespace std; int main() { int n; n = 100; for (int j = 100; j <=200 ; j++) { int a = 0; for (int i = 2; i <= n; i++) { for (int i = 2; i < n ; i++) { if (n % i == 0) { a = 1; break; } } if (a == 1) { cout << "NO" << endl; } else { cout << "Yes" << endl; } n = j; } } return 0; }