-
个人简介
#include<bits/stdc++.h> using namespace std; int a[1000100],n,x; bool p; int main() { freopen("math.in","r",stdin); freopen("math.out","w",stdout); a[1]=1; for(int i=1;i<=1000;i++) if(a[i]==0) for(int j=i*i;j<=1000000;j+=i) a[j]=1; cin>>n; for(int i=1;i<=n;i++) { cin>>x; for(int j=1;j<=x/2;j++) if(a[j]==0&&a[x-j]==0) { cout<<x<<"="<<j<<"+"<<x-j; p=1; break; } if(p==0) cout<<"NO WAY!"; cout<<endl; p=0; } } -
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
题目标签
- 深搜 广搜
- 1
- 大沥2021
- 1