//无聊透顶
#include<bits/stdc++.h>
#include<windows.h>
#include<cstdlib>
#include<ctime>
#include<time.h>
#include<conio.h>
#define int long long
using namespace std;
signed main(){
	srand(time(NULL));
	cout<<"输入游玩次数\n";
	int cnt=0;
	int a;
	cin>>a;
	for(int i=1;i<=a;i++){
		Sleep(500);
		system("cls");
		cout<<"? ? ? "<<"\n";
		cout<<"? ? ? "<<"\n";
		cout<<"? ? ? "<<"\n";
		Sleep(500);
		cout<<"你觉得会是几?(1~6)\n";
		int x;
		cin>>x;
		int num=rand()%6+1;
		cout<<"? ? ? "<<"\n";
		cout<<"? "<<num<<" ? \n";
		cout<<"? ? ? "<<"\n";
		if(x==num){
			cout<<"你真幸运!!!\n";
			if(num==6){
				cout<<"你超级幸运!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
			}
			cnt++;
		}
		else{
			cout<<"再接再厉\n";
		}
	}
	cout<<"本次游玩幸运值为: "<<cnt;
	return 0;
}

0 条评论

目前还没有评论...

信息

ID
116
时间
1000ms
内存
256MiB
难度
8
标签
递交数
56
已通过
9
上传者