100粉粉福
chengjindong · · 闲话
别人都有粉福,我也
发十个问题在评论区,从前十中随机抽出五个问题回答。
抽选代码:
#include<bits/stdc++.h>
#define ll long long
#define double long double
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
srand(time(0));
int a[17]{0};
for(int i=0;i<5;i++){
int t=rand()%10+1;
while(a[t]!=0){
t=rand()%10+1;
}
cout<<t<<" ";
a[t]=1;
}
return 0;
}
有效问题:
- @0 : 性别?
- @hsr_ray_kkksc03 : 姓名?
- @yc6317 : 你在哪个省份
- @jiangyixuan_eason : 年级?
- @hsr_ray_kkksc03 : 学校?
- @chenyanzhe : 常用语言
- @Eden_star : 你玩什么游戏
- @mcturtle : 准确坐标?
- @zhangxiwei2013 : 爱好?
- @_luoguhuowenshuo : 几岁?
输出结果:
$A1$: JS。 $Q2$: @[Eden_star](https://www.luogu.com.cn/user/1269111) : 你玩什么游戏 $A2$: 我不玩电脑游戏。 $Q3$: @[__0__](https://www.luogu.com.cn/user/794507) : 性别? $A3$: 男。 $Q4$: @[zhangxiwei2013](https://www.luogu.com.cn/user/1160756) : 爱好? $A4$: 下象棋,下五子棋…… $Q5$: @[_luogu_huowenshuo_ ](https://www.luogu.com.cn/user/884813) : 几岁? $A5$: 13。
没抽到的,私信问吧~~会回的。