50粉粉福·捞

· · 个人记录

58粉了,特此。

私信发问题,会抽5个来回答,不能问个人隐私,其他随意。

抽取代码

#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;
}

目前有效回答:

1

2

3

4

5

6

7

8

9

10

问题:

Q1:

A1:

Q2:

A2:

Q3:

A3:

Q4:

A4:

Q5:

A5:

感谢关注。