| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164724 | 王垚植 | 哥德巴赫猜想 | C++ | Accepted | 2 MS | 264 KB | 438 | 2026-11-07 11:56:43 |
#include<bits/stdc++.h> using namespace std; int n(int a){ for(int i=2;i*i<=a;i++){ if(a<2){ return 0; } if(a%i!=0){ } else{ return 0; } } return 1; } int main(){ for(int i=6;i<=100;i+=2){ for(int j=3;j<=100;j++){ if(n(j)==1&&n(i-j)==1){ cout<<i<<'='<<j<<'+'<<i-j<<endl;break; } } } return 0; }