| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 118733 | 殷佳雨萱 | 哥德巴赫猜想 | C++ | Output Limit Exceeded | 5 MS | 256 KB | 337 | 2025-05-10 11:24:02 |
#include<bits/stdc++.h> #include<cmath> using namespace std; bool SuShu(int a){ for(int j=2;j<+sqrt(a);j++){ if(a%j==0) return 0; } return 1; } int main(){ for(int i=6;i<=100;i+=2){ for(int j=3;j<=i/2;j+=2){ if(SuShu(i-j) &&SuShu(j)){ cout<<i<<"="<<j<<"+"<<i-j<<endl; continue; } } } }