| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164531 | 李亭绪 | 哥德巴赫猜想 | C++ | Accepted | 2 MS | 260 KB | 647 | 2026-11-04 19:17:57 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int m_j(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(m_j(j)==1&&m_j(i-j)==1){ cout<<i<<"="<<j<<"+"<<i-j<<endl; break; } } } }