| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 12865 | 罗炜翰 | 纯粹合数 | C++ | 解答错误 | 0 | 1 MS | 248 KB | 396 | 2025-08-27 16:44:46 |
#include<bits/stdc++.h> using namespace std; int z(int x) { if(x==1){ return 0; } for(int i = 2;i<sqrt(x);i++) { if(x%i==0) { return 0; } } return 1; } int zz(int n){ if(!(z(n/100))&&!(z(n/10))&&!(z(n))){ return 1; } else { return 0; } } int main() { for(int i=400;i<=489;i++){ if(zz(i)==1){ cout<<i<<endl; } } return 0; }