Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
336047 陈熙 【C3-8】哥德巴赫猜想 C++ Wrong Answer 0 2 MS 248 KB 466 2025-07-24 20:14:10

Tests(0/1):


#include<iostream> using namespace std; int main(){ int m,f1,f2,f3=0; while(cin>>m){ for(int i=2;i<=m-2;i++){ f1=0,f2=0; int x=m-i; for(int j=2;j<i;j++){ if(i%j==0){ f1=1; break; } } if(f1==1) continue; for(int j=2;j<x;j++){ if(x%j==0){ f2=1; break; } } if(f1==0&&f2==0){ cout<<"yes"<<endl; f3=1; break; } } if(f3==0) cout<<"no"; } return 0; }


Judgement Protocol: