| 比赛 | CSP2022提高组 | 评测结果 | RRRRRRRRRRRRRRRRRRRR |
|---|---|---|---|
| 题目名称 | 星战 | 最终得分 | 0 |
| 用户昵称 | 康尚诚 | 运行时间 | 1.292 s |
| 代码语言 | C++ | 内存使用 | 5.74 MiB |
| 提交时间 | 2022-10-30 12:03:21 | ||
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("csp2022pj_galaxy.in","r",stdin);
freopen("csp2022pj_galaxy.out","w",stdout);
int n,m;cin>>n>>m;
for(int i=1;i<=m;i++)
{
int u,v;
cin>>u>>v;
}
int p;cin>>p;
srand(time(0));
for(int i=1;i<=p;i++)
{
if(rand()%2==0)
{
cout<<"YES"<<endl;
}
else
{
cout<<"NO"<<endl;
}
}
}