关于rand
  • 板块灌水区
  • 楼主Interchangeable
  • 当前回复2
  • 已保存回复2
  • 发布时间2024/10/28 12:57
  • 上次更新2024/10/28 17:08:11
查看原帖
关于rand
689706
Interchangeable楼主2024/10/28 12:57

在B2051中用

#include<bits/stdc++.h>
using namespace std;
signed main(){
    srand(time(0));
	int f=rand()%2+0;
	if(f>=1)cout<<"yes";
	else cout<<"no";
	return 0;
}

不断提交会封号或者AC吗

2024/10/28 12:57
加载中...