| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84244 | 刘泽熙 | 哥德巴赫猜想 | C++ | Wrong Answer | 2 MS | 256 KB | 326 | 2024-07-15 14:39:42 |
#include<bits/stdc++.h> using namespace std; bool is(int n){ for(int i=2;i<=sqrt(n);i++){ if(n%1==0){ return false; } } return true; } int main(){ int k; for(int i=6;i<=100;i=i+2){ for(int j=3;j<i;j=j+2){ k=i-j; if(is[j]&&is[k]){ cout<<i<<"="<<j<<'+'<<endl; break; } } } }
------Input------
0
------Answer-----
6=3+3 8=3+5 10=3+7 12=5+7 14=3+11 16=3+13 18=5+13 20=3+17 22=3+19 24=5+19 26=3+23 28=5+23 30=7+23 32=3+29 34=3+31 36=5+31 38=7+31 40=3+37 42=5+37 44=3+41 46=3+43 48=5+43 50=3+47 52=5+47 54=7+47 56=3+53 58=5+53 60=7+53 62=3+59 64=3+61 66=5+61 68=7+61 70=3+67 72=5+67 74=3+71 76=3+73 78=5+73 80=7+73 82=3+79 84=5+79 86=3+83 88=5+83 90=7+83 92=3+89 94=5+89 96=7+89 98=19+79 100=3+97
------Your output-----
6=3+ 8=3+ 10=3+ 12=3+ 14=3+ 16=3+ 18=3+ 20=3+ 22=3+ 24=3+ 26=3+ 28=3+ 30=3+ 32=3+ 34=3+ 36=3+ 38=3+ 40=3+ 42=3+ 44=3+ 46=3+ 48=3+ 50=3+ 52=3+ 54=3+ 56=3+ 58=3+ 60=3+ 62=3+ 64=3+ 66=3+ 68=3+ 70=3+ 72=3+ 74=3+ 76=3+ 78=3+ 80=3+ 82=3+ 84=3+ 86=3+ 88=3+ 90=3+ 92=3+ 94=3+ 96=3+ 98=3+ 100=3+