谁是幸运儿2

· · 个人记录

#include<iostream>
#include<ctime>
#include<random>
#define int long long
using namespace std;
const int maxn = 54;
long long a[maxn];
int xuan;
int _ti(int x1){
    int dam = 0;
    for(int i = 1;i <= x1;i++){
        for(int j = 1;j <= 1e7;j++){
            dam%=1;
        }
    }
}
string xx1[20] = {"11111","  1  ","11111","11111","1   1","11111","11111","11111","11111","11111","11111"};
string xx2[20] = {"1   1","  1  ","    1","    1","1   1","1    ","1    ","    1","1   1","1   1"};
string xx3[20] = {"1   1","  1  ","11111","11111","11111","11111","11111","    1","11111","11111"};
string xx4[20] = {"1   1","  1  ","1    ","    1","    1","    1","1   1","    1","1   1","    1"};
string xx5[20] = {"11111","  1  ","11111","11111","    1","11111","11111","    1","11111","11111"};
int __cout(int x1,int x2){
    cout << xx1[x1] << " " << xx1[x2] << "\n";
    _ti(10);
    cout << xx2[x1] << " " << xx2[x2] << "\n";
    _ti(10);
    cout << xx3[x1] << " " << xx3[x2] << "\n";
    _ti(10);
    cout << xx4[x1] << " " << xx4[x2] << "\n";
    _ti(10);
    cout << xx5[x1] << " " << xx5[x2] << "\n";  
    _ti(10);
} int wgcqtx(){
    string xsh;
    if(xuan == 0){
        xsh = "网管正在抓取幸运儿,请耐心等候"; 
    }else if(xuan == 1){
        xsh = "网管正在翻他的小本本...";
    }else{
        xsh = "网管中二的喊出来:就决定是你了!"; 
    } 
    for(int i = 0;i < xsh.size();i++){
        cout << xsh[i];
        _ti(5);
    }cout << endl;
}
signed main(){
    std::default_random_engine e; 
    e.seed(time(0));
    string s1 = "网管提醒您:深呼吸,头晕是正常的";
    for(int i = 0;i <s1.size();i++){
        cout << s1[i];
        _ti(5);
    } cout <<"\n\n\n\n\n\n\n\n\n\n\n\n";
    for(int i = 1;i <= 10;i++){
        a[i] = e()%53+1;
        xuan = a[i]%3;
        //cout << "\n\n\n\n\n\n\n\n";
        wgcqtx();
        __cout(a[i]/10,a[i]%10);
        cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
        _ti(50);
    }
}