Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98739 | 廖宸睿 | 哥德巴赫猜想 | C++ | Output Limit Exceeded | 7 MS | 268 KB | 429 | 2024-11-23 14:16:13 |
#include <iostream> #include <cstdio> using namespace std; bool a(int e){ for(int i=2;i*i<=e;i++) if(e%i==0) return false; return true;} int main() { for(int i=6;i<=100;i++){ for(int j=2;j<=i/2;j++) { if(a(j)&&a(i-j)){ cout<<i<<'='<<j<<'+'<<i-j<<endl; } } } return 0; }