| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133587 | 李馥甄 | 哥德巴赫猜想 | C++ | Accepted | 2 MS | 260 KB | 384 | 2025-10-19 16:38:18 |
#include <bits/stdc++.h> using namespace std; bool sushu (int x){ if(x<2){ return false; } for(int i=2;i<=x-1;i++){ if(x%i==0){ return false; } } return true; } int main(){ for(int n=6;n<=100;n+=2){ bool flg=false; for(int i=2;i<=97;i++){ if(sushu(i)&&sushu(n-i)){ cout<<n<<"="<<i<<"+"<<n-i<<endl; break; } } } return 0; }