| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12297 | 罗炜翰 | 纯粹合数 | C++ | Wrong Answer | 0 | 23 MS | 260 KB | 390 | 2025-07-09 16:58:12 |
#include<bits/stdc++.h> using namespace std; int z(int x) { for(int i = 2;i<x;i++) { if(x%i==0) { return 0; } } return 1; } int zz(int n){ if(!(z(n)&&z(n/1000)&&z(n/100)&&z(n/10))){ return 1; } else { return 0; } } void fun(){ for(int i=400;i<=999;i++){ if(zz(i)){ cout<<i<<endl; } } } int main() { fun(); return 0; }