Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157839 张蔚林 哥德巴赫猜想 C++ Accepted 2 MS 256 KB 351 2026-08-18 14:16:15

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; bool ss(int x){ if(x<2) return false; for(int i=2;i<=x/2;i++){ if(x%i==0) return false; } return true; } int main(){ int c=0; for(int i=6;i<=100;i+=2){ for(int j=2;j<=i;j++){ if(ss(j)&&ss(i-j)){ cout<<i<<'='<<j<<'+'<<(i-j)<<endl; break; } } } return 0; }