| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133218 | 王金檐 | 哥德巴赫猜想 | C++ | Accepted | 3 MS | 256 KB | 506 | 2025-10-17 23:09:04 |
#include <iostream> using namespace std; int a; bool a1,j1; int qzs(){ for(int i=6;i<=100;i++){ for(int j=2;j<i;j++){ a=i-j; a1=false; for(int l=2;l<a;l++){ if(a%l==0){ a1=false; break; } a1=true; } j1=false; for(int l=2;l<j;l++){ if(j%l==0){ j1=false; break; } j1=true; } if(a1==true && j1==true){ cout<<i<<"="<<j<<"+"<<a<<endl; break; } } } } int main(){ qzs(); return 0; }