• 个人简介

    下载

    image

    	_      _      _  
       / /    / /    / /
      / /    / /    / /
     / __\  / __\  / __\
     ||_| |	||_| | ||_| |
     \___/	\___/  \___/
    

    游戏

    我的世界

    还能打开设置?

    image 好玩的图片


    image

    image

    image

    image 我的朋友


    @点我

    @点我

    @点我

    @点我

    我们的teacher@

    我们的另一个teacher@(@)

    image c++程序


    狼人杀:

       #include<bits/stdc++.h>
    #include<windows.h>
    #include<conio.h>
    using namespace std;
    const int daytime=0,night=1;
    int day=0, during_time=daytime, player_number, my_number;
    HWND hwnd=GetForegroundWindow();
    const int blue=0,yellow=1,red=2,green=3,purple=4,white=5;//颜色常量 
    void color(int c){
    	switch(c){
    		case red:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);break;
    		case green:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);break;
    		case yellow:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN);break;
    		case blue:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);break;
    		case white:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);break;
    		case purple:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE);break;
    	}
    }
    int idx_police=-1;
    void gotoxy(int x,int y){
    	COORD position;
    	position.X=x;
    	position.Y=y;
    	SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), position);
    }
    void init_Show_Window(){
    	system("mode con lines=60 cols=188"); 
    	ShowWindow(hwnd,SW_MAXIMIZE);//窗口最大化 
    	DeleteMenu(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_BYCOMMAND);
    	DrawMenuBar(GetConsoleWindow());//删除×字符 
    }
     
    /*玩家类*/
    const int nvwu=0,cunmin=1,yuyanjia=2,langren=3,lieren=4,shouwei=5,good=6,die=1,life=2;
    class player{
    public:
    	int type;
    	int die_or_life;
    	int how(){
    		return die_or_life;
    	}
    	int is_light;//是否已经公布 
    	int killer;
    };
    player players[1000];
     
    /*转换白天模式*/ 
    void change_daytime(){
    	during_time=daytime;
    	day++;
    }
     
    /*转换黑夜模式*/
    void change_night(){
    	during_time=night;
    }
    int nnvwu=0,ncunmin=0,nyuyanjia=0,nlangren=0,nlieren=0,nshouwei=0;
    int idxnvwu,idxshouwei,idxyuyanjia,idxlieren,idxlangren[4]={-1,-1,-1,-1};
     
    /*b是否在Arr中*/
    bool is_include(int arr[],int b,int l){
    	for(int i=0;i<l;i++){
    		if(arr[i]==b)
    			return true;
    	}
    	return false;
    }
     
    /*初始化人数*/
    void init_players(){
    	my_number=rand()%player_number;
    	if(player_number==12) nlangren=4;
    	else if(player_number>=10) nlangren=3;
    	else nlangren=2;
    	for(int i=0;i<player_number;i++)
    	{
    		players[i].die_or_life=life;
    		players[i].is_light=0;
    		players[i].type=-1;
    		players[i].killer=2147483647;
    	}
    	for(int i=0;i<nlangren;i++)
    	{
    		int p=rand()%player_number;
    		if(!is_include(idxlangren,p,4))
    			idxlangren[i]=p,players[p].type=langren;
    		else
    			i--;
    		Sleep(rand()%80+100);
    	}
    	if(player_number==12)
    	{
    		do{
    			idxshouwei=rand()%player_number;
    		}while(players[idxshouwei].type!=-1);   
    		players[idxshouwei].type=shouwei;   
    	}
    	do{
    		idxnvwu=rand()%player_number;
    	}while(players[idxnvwu].type!=-1);
    	players[idxnvwu].type=nvwu;
    	if(player_number>=10)
    	{
    		do{
    			idxlieren=rand()%player_number;
    		}while(players[idxlieren].type!=-1);
    		players[idxlieren].type=lieren;   
    	}
    	do{
    		idxyuyanjia=rand()%player_number;
    	}while(players[idxyuyanjia].type!=-1);
    	players[idxyuyanjia].type=yuyanjia;
    	for(int i=0;i<player_number;i++)
    		if(players[i].type==-1)
    			players[i].type=cunmin,
    			ncunmin++;
    	if(players[my_number].type==langren)
    	{
    		for(int i=0;i<nlangren;i++)
    		{
    			players[idxlangren[i]].is_light=1;
    		}
    	}
    	players[my_number].is_light=1;
    }
     
    /*在屏幕上打印东西*/
    void print(){
    	gotoxy(0,0);
    	cout<<"作者:洛谷393864";
    	gotoxy(90,0);
    	if(during_time==night)
    		color(red);
    	else
    		color(blue);
    	printf("第%d天 | ",day);
    	if(during_time==night) cout<<"黑夜";
    	else cout<<"白天";
    	
    	gotoxy(0,3);
    	color(blue);
    	cout<<" 我的号位:"<<my_number+1;
    	for(int i=0;i<player_number;i++){
    		gotoxy(i*8+1,4);
    		if(i==idx_police) color(yellow);
    		else color(blue);
    		cout<<i+1<<"号位"; 
    		gotoxy(i*8+1,5);
    		if(players[i].how()==die){
    			color(red);
    			cout<<"死 亡";
    		}else{
    			color(green);
    			cout<<"存 活";
    		}
    		gotoxy(i*8+1,6);
    		color(blue);
    		if(players[i].is_light){
    			if(players[i].is_light==1){
    				switch(players[i].type){
    					case nvwu: cout<<"女 巫";break;
    					case yuyanjia: cout<<"\b预言家";break;
    					case cunmin: cout<<"村 民";break;
    					case langren:cout<<"狼 人"; break;
    					case lieren:cout<<"猎 人"; break; 
    					case shouwei:cout<<"守 卫"; break;
    				}   
    			}else{
    				cout<<"好人";
    			}
    			
    		}else{
    			cout<<"未知";
    		}
    	}
    	
    } 
     
    /*判断是否结束,没结束返回0  好人胜利返回1  狼人胜利返回2   平局返回3*/
    int is_end(){
    	int die_bad=0;
    	int die_people=0;
    	int die_god=0;
    	for(int i=0;i<player_number;i++){
    		if((players[i].type == nvwu || players[i].type == yuyanjia || players[i].type == shouwei)&&players[i].die_or_life==die)
    			die_god++;
    		else if(players[i].type == langren && players[i].die_or_life==die)
    			die_bad++;
    		else if(players[i].type == cunmin && players[i].die_or_life==die)
    			die_people++;
    	}
    	if((die_bad==die_people || die_bad==die_god)&&(die_bad>=nlangren))
    		return 3;
    	if(die_bad>=nlangren)
    		return 1;
    	if(die_people>=ncunmin||die_god>=(player_number>=10 ? 3:2))
    		return 2;
    	return 0;
    }
     
    /*游戏开始前的骚操作*/
    void before_game(){
    	srand(time(NULL));
    	init_Show_Window();
    	color(green);
    	cout<<"欢迎来到狼人杀游戏\t\t\t为了更好的游戏体验,请右键点击上方↑↑,点击\"属性\",点击\"字体\"栏目,将字体修改为宋体或新宋体,将字号改为20\n作者:洛谷393864\n请勿私自转载,违者依法追究法律责任  注:10 11 12人局开设猎人  12人局开设守卫警长\n______________________\n";
    	cout<<"请输入玩家人数(8-12人):";
    	cin>>player_number;
    	while(player_number<8||player_number>12)
    	{ cout<<"请重新输入!\n"; cin>>player_number; }
    	system("cls");
    	cout<<"初始化身份中,请稍等.";
    	for(int i=0;i<6;i++){
    		for(int j=0;j<12;j++){
    			cout<<".";
    			Sleep(50);
    		}   
    		cout<<"\b\b\b\b\b\b\b\b\b\b\b\b            \b\b\b\b\b\b\b\b\b\b\b\b";
    	}
    	system("cls");
    	
    	init_players();
    	cout<<"我的号位:"<<my_number+1<<endl
    	<<"我的身份:";
    	switch(players[my_number].type){
    		case nvwu: cout<<"女巫\n";break;
    		case yuyanjia: cout<<"预言家\n";break;
    		case cunmin: cout<<"村民\n";break;
    		case langren:cout<<"狼人\n";break;  
    		case lieren:cout<<"猎人\n"; break;  
    		case shouwei:cout<<"守卫\n";break;
    	}
    	change_daytime();
    	system("pause");
    	system("cls");
    	cout<<"游戏加载中.";int ppppp=rand()%3+2;
    	for(int i=0;i<ppppp;i++){
    		for(int j=0;j<6;j++){
    			cout<<".";
    			Sleep(rand()%100+150);
    		}   
    		cout<<"\b\b\b\b\b\b      \b\b\b\b\b\b";
    	}   
    	print();
    } 
     
    /*每一天开始前的操作*/
    void something_before_everyday(){
    	change_night();
    	system("cls");
    	print();
    	gotoxy(0,7);
    	cout<<"________________________";
    	gotoxy(0,8);
    	color(white);
    	cout<<"天黑~请闭眼~~~\n";
    }
     
    /*守卫操作*/
    int shouweishou=0;
    int ShouWei(){
    	color(blue);
    	cout<<"守卫~请睁眼~~\n";
    	Sleep(1500);
    	cout<<"你要守护的是?\n";
    	if(players[my_number].type==shouwei&&players[my_number].die_or_life == life){
    		cin>>shouweishou;
    		while(!(shouweishou>=1&&shouweishou<=player_number&&players[shouweishou-1].die_or_life == life)){
    			cout<<"请重新输入!\n";
    			cin>>shouweishou;
    		}
    		cout<<"你今晚要守护的是"<<shouweishou<<"号\n";
    		Sleep(1500); 
    		shouweishou--;
    	}else{
    		if(players[idxshouwei].die_or_life == life){
    			shouweishou=rand()%10;
    			while(!(shouweishou>=1&&shouweishou<=player_number&&players[shouweishou-1].die_or_life == life)){
    				shouweishou=rand()%10;
    			}
    		}
    	}   
    	Sleep(2000);
    	cout<<"守卫请闭眼"<<endl<<endl;
    	return shouweishou;
    } 
     
    /*狼人操作*/
    int LangRen(){
    	int langrensha=-1;
    	color(red);
    	cout<<"狼人~请睁眼~~~\n";
    	Sleep(1500);
    	cout<<"你们今晚要杀~谁~~??\n";
    	if(players[my_number].type==langren&&players[my_number].die_or_life == life){
    		cin>>langrensha;
    		while(!(langrensha>=1&&langrensha<=player_number&&players[langrensha-1].die_or_life==life)){
    			cout<<"请重新输入!\n";
    			cin>>langrensha;
    		}
    		cout<<"你们今晚要杀的是"<<langrensha--<<"号\n";
    		Sleep(3500);
    	}else{
    		while(langrensha==-1 || players[langrensha].die_or_life == die || players[langrensha].type==langren){
    			langrensha=rand()%player_number;
    		}
    		Sleep(3000);
    	}
    	cout<<"狼人请~闭眼~~\n\n";
    	return langrensha;
    }
     
    /*女巫操作*/
    int nvwujiu=0,nvwudu=0,is_nvwujiu=0,is_nvwudu=0;
    int NvWu(int langrensha){
    	color(purple);
    	cout<<"女巫~~请睁眼~~\n";
    	Sleep(2000);
    	if(players[my_number].type==nvwu&&players[my_number].die_or_life == life){
    		if(is_nvwujiu) 
    			cout<<"你已经用过解药\n",Sleep(1500);
    		else
    		{
    			cout<<"今晚"<<langrensha+1<<"号死了,你想用解药吗?(1想 / 2不想)\n";
    			int is_nvwujie=0;
    			cin>>is_nvwujie;
    			while(is_nvwujie!=1&&is_nvwujie!=2){
    				cout<<"请重新输入\n";
    				cin>>is_nvwujie;
    			} 
    			if(is_nvwujie==1) {
    				Sleep(1000);
    				cout<<"已经解救"<<langrensha+1<<"号\n";
    				nvwujiu=langrensha;
    			}
    			is_nvwujiu=1;
    		}
    		Sleep(1500);
    		if(::is_nvwudu) cout<<"你已经用过解药\n",Sleep(1500);
    		else
    		{
    			cout<<"你想用毒药吗?(1想 / 2不想)\n";
    			Sleep(1500);
    			int is_nvwudu=0;
    			cin>>is_nvwudu;
    			while(is_nvwudu!=1&&is_nvwudu!=2){
    				cout<<"请重新输入\n";
    				cin>>is_nvwudu;
    			}   
    			if(is_nvwudu==1){
    				Sleep(1500);
    				cout<<"你想毒谁?\n"; 
    				cin>>nvwudu;
    				while(!(nvwudu>=1&&nvwudu<=player_number&&players[nvwudu].die_or_life==life)){
    					cout<<"请重新输入\n";
    					cin>>nvwudu; 
    				}
    				nvwudu--;
    				Sleep(1500);
    				cout<<"已经毒死了"<<nvwudu+1<<"号\n";
    			}
    			::is_nvwudu=1;
    		}   
    	}else{
    		if(players[idxnvwu].die_or_life == life){
    			if(!is_nvwujiu)
    			{
    				int is_jiu=rand()%8;
    				if(is_jiu==0){
    					nvwujiu=langrensha;
    					is_nvwujiu=1;
    				}   
    			}
    			if(!is_nvwudu)
    			{
    				int is_du=rand()%4;
    				if(is_du==0){
    					int num=rand()%player_number;
    					nvwudu=num;
    					is_nvwudu=1;
    				}
    			}
    		}
    		
    	} 
    	cout<<"女巫~请闭眼~~\n\n";
    	return nvwujiu*10000+nvwudu;//传回两个变量,“加密”操作 
    }
     
    int yuyanjiabixutoupiao=-1;
    /*预言家操作*/
    void YuYanJia(){
    	color(green);
    	cout<<"预言家~请睁眼~~\n";
    	Sleep(2000);
    	if(players[my_number].type==yuyanjia&&players[my_number].die_or_life == life){
    		cout<<"请问你想查验谁的身份\n";
    		int p;
    		cin>>p;
    		while(!(p>=1&&p<=player_number)){
    			cout<<"请重新输入!\n";
    			cin>>p;
    		}
    		Sleep(2000);
    		cout<<p<<"号的身份是——";
    		Sleep(1000);
    		if(players[p-1].type == langren){
    			cout<<"狼人\n";
    			players[p-1].is_light = 1;
    		}else{
    			cout<<"好人\n";
    			players[p-1].is_light = 2;
    		}
    	}else{
    		int p=-1;
    		while(p==-1||players[p].die_or_life==die||p==idxlieren)
    			p=rand()%player_number;
    		if(players[p].type==langren)//锁定目标! 
    		{
    			yuyanjiabixutoupiao=p;
    		}
    	}
    	cout<<"预言家~~请闭眼~~\n";
    }
     
    /*黑夜操作*/
    int LANGRENSHA=-1,NVWUDU=-1,NVWUJIU=-1,SHOUWEISHOU=-1; 
    void Night(){   
    	LANGRENSHA=-1,NVWUDU=-1,NVWUJIU=-1,SHOUWEISHOU=-1; 
    	
    	//如果有12人局,添加守卫 
    	if(player_number==12){
    		SHOUWEISHOU=ShouWei();
    		Sleep(2000);
    	} 
    	/*狼人部分*/
    	LANGRENSHA=LangRen();
    	Sleep(3500);
    	/*女巫部分*/ 
    	int nvwu=NvWu(LANGRENSHA);
    	NVWUDU=nvwu%10+nvwu/10%10;
    	NVWUJIU=nvwu/10000%10+nvwu/100000%10;
    	Sleep(3000);
    	/*预言家部分*/
    	YuYanJia();
    	Sleep(2000);
    }
     
    /*猎人操作*/
    void Lieren(){
    	int lierendai=-1;
    	cout<<idxlieren+1<<"号是猎人\n";
    	
    	players[idxlieren].is_light = 1;
    	Sleep(1000);
    	if(idxlieren==my_number){
    		cout<<"你想带走几号?\n";
    		cin>>lierendai;
    		while(lierendai<1||lierendai>player_number||players[lierendai].die_or_life==die){
    			cout<<"请重新输入!\n";
    			cin>>lierendai;
    		}
    		lierendai--;
    	}else{
    		lierendai=rand()%player_number;
    		while(players[lierendai].die_or_life == die){
    			lierendai=rand()%player_number;
    		}
    	}
    	Sleep(2000);
    	cout<<"猎人选择带走"<<lierendai+1<<"号\n";
    	Sleep(2000);
    	players[lierendai].die_or_life = die;
    }
     
    void police_die();
    /*判断谁死了*/
    void panduansiwang(){
    	system("cls");
    	print(); 
    	gotoxy(0,7);
    	cout<<"________________________\n";
    	Sleep(3000);
    	color(white);
    	cout<<"天亮了\n";
    	Sleep(2000);
    	gotoxy(0,9);
    	cout<<"昨晚";
    	bool is_die[15]={false},is_die_lieren=false,flag=false;
    	for(int i=0;i<player_number;i++)
    	{
    		if(players[i].die_or_life==life)
    		{
    			if(i==LANGRENSHA||i==NVWUDU) {
    				if(players[i].type==lieren) is_die_lieren=true;
    				players[i].killer= (i==LANGRENSHA ? langren:nvwu);
    				players[i].die_or_life=die;
    				is_die[i]=true;
    			}
    			if(i==SHOUWEISHOU||i==NVWUJIU) {
    				if(players[i].type==lieren) is_die_lieren=false;
    				players[i].killer=-1;
    				players[i].die_or_life=life;
    				is_die[i]=false;
    			}   
    		}
    	}
    	bool is_police_die=false;
    	for(int i=0;i<player_number;i++)
    	{
    		if(is_die[i])
    		{
    			if(flag) cout<<"和"<<i+1<<"号";
    			else cout<<i+1<<"号",flag=true;
    			if(i==idx_police) 
    				is_police_die=true;
    		}
    	}
    	if(flag) cout<<"死了\n";
    	else cout<<"是平安夜\n";
    	
    	if(is_die_lieren) Lieren();
    	if(is_police_die) police_die();
    }
     
    /*选警长*/
    void choose_police(){
    	system("cls");
    	print();
    	color(blue);
    	gotoxy(0,7);
    	cout<<"________________________\n";
    	color(yellow);
    	cout<<"下面开始选举警长,各位不能选举自己~\n";
    	int tong[100]={0},cannot[100],must[100]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
    	memset(cannot,-1,sizeof(cannot));
    	CHOOSE:
    	color(yellow);
    	Sleep(1500);
    	for(int i=0;i<player_number;i++)
    	{
    		if(players[i].die_or_life==life&&!is_include(cannot,i,player_number))
    		{
    			if(i==my_number)
    			{
    				cout<<"你要选举几号?\n";
    				int n;
    				cin>>n;
    				while(n<1||n>player_number||n==i+1||players[n-1].die_or_life==die||!is_include(must,n-1,player_number))
    				{
    					cout<<"请重新输入!\n";
    					cin>>n;
    				}
    				cout<<i+1<<"号选举"<<n--<<"号\n";
    				tong[n]++;
    			}
    			else
    			{
    				int n=rand()%player_number;
    				while(n==i||players[n].die_or_life==die||!is_include(must,n,player_number))
    					n=rand()%player_number;
    				cout<<i+1<<"号选举"<<n+1<<"号\n";
    				tong[n]++;
    			}
    			Sleep(1500);
    		}
    	}
    	int idx_max=-1,maxn=-1,len=0;
    	for(int i=0;i<player_number;i++)
    		if(maxn<tong[i])
    		{
    			maxn=tong[i];
    			idx_max=i;
    		}
    	int maxn_arr[15]={0};
    	for(int i=0;i<player_number;i++)
    	{
    		if(tong[i]==maxn)
    		{
    			maxn_arr[len++]=i;
    		}
    	}
    	color(blue);
    	if(len>1)
    	{
    		for(int i=0;i<len;i++)
    		{
    			if(i==len-1)
    			{
    				cout<<maxn_arr[i]+1<<"号平票\n"; 
    			}
    			else
    			{
    				cout<<maxn_arr[i]+1<<"号,";
    			}
    		}
    		for(int i=0;i<len;i++)
    			cannot[i]=maxn_arr[i];
    		for(int i=0;i<player_number;i++)
    		{
    			if(is_include(cannot,i,len))
    				must[i]=i;
    			else
    				must[i]=-1;
    		}
    		color(white);
    		goto CHOOSE;
    	}
    	cout<<"恭喜"<<idx_max+1<<"号当选警长\n";
    	Sleep(3000);
    	idx_police=idx_max;
    	return;
    }
     
    /*投票*/
    int toupiao(){
    	int tong[100]={0},cannot[100]={},must[100]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; 
    	memset(cannot,-1,sizeof(cannot));
    	gotoxy(0,7);
    	color(blue);
    	cout<<"________________________\n";
    	color(white);
    	cout<<"下面进入投票环节\n";
    	memset(tong,0,sizeof(tong));
    	Sleep(2000);
    	TOUPIAO:
    	for(int i=0;i<player_number;i++){
    		if(players[i].die_or_life == life&&!is_include(cannot,i,player_number)){
    			if(i==my_number){
    				color(white);
    				cout<<"你要投几号?\n";
    				int n;
    				cin>>n;
    				while(!(n>=1&&n<=player_number&&is_include(must,n-1,player_number))){
    					cout<<"请重新输入!\n";
    					cin>>n;
    				}
    				Sleep(2000);
    				cout<<setw(2)<<my_number+1<<"号投了"<<setw(2)<<n<<"号";
    				if(my_number==n-1) color(red),cout<<"快来看!这有个疯子投自己!"; 
    				if(i==idx_police) color(yellow),cout<<"(警长)\n"; else cout<<"\n";
    				if(i==idx_police) tong[n-1]++;
    				tong[n-1]++;
    			}else{
    				color(white);
    				int t=-1;
    				while(t==-1 || players[t].die_or_life == die || t==i || !is_include(must,t,player_number)){
    					if(i==idxyuyanjia&&yuyanjiabixutoupiao!=-1)
    					{
    						t=yuyanjiabixutoupiao;
    						yuyanjiabixutoupiao=-1;
    						continue;
    					}
    					t=rand()%player_number;
    					if(is_include(idxlangren,i,nlangren))
    					{
    						if(players[t].type == langren)
    							t=-1;
    					}
    				}
    				cout<<setw(2)<<i+1<<"号"<<"投了"<<setw(2)<<t+1<<"号";
    				if(i==idx_police) cout<<"(警长2票)\n"; else cout<<"\n";
    				if(i==idx_police) tong[t]++;
    				tong[t]++;  
    			}
    			
    			Sleep(rand()%1000+1000);
    		}
    	}
    	int idx_max=-1,maxn=-1,len=0;
    	for(int i=0;i<player_number;i++)
    		if(maxn<tong[i])
    		{
    			maxn=tong[i];
    			idx_max=i;
    		}
    	int maxn_arr[15]={0};
    	for(int i=0;i<player_number;i++)
    	{
    		if(tong[i]==maxn)
    		{
    			maxn_arr[len++]=i;
    		}
    	}
    	color(blue);
    	if(len>1)
    	{
    		for(int i=0;i<len;i++)
    		{
    			if(i==len-1)
    			{
    				cout<<maxn_arr[i]+1<<"号平票\n"; 
    			}
    			else
    			{
    				cout<<maxn_arr[i]+1<<"号,";
    			}
    		}
    		for(int i=0;i<len;i++)
    			cannot[i]=maxn_arr[i];
    		for(int i=0;i<player_number;i++)
    		{
    			if(is_include(cannot,i,len))
    				must[i]=i;
    			else
    				must[i]=-1;
    		}
    		color(white);
    		goto TOUPIAO;
    		
    	}
    	
    	cout<<idx_max+1<<"号"<<"出局\n";
    	Sleep(4000);
    	players[idx_max].die_or_life = die;
    	players[idx_max].killer = good;
    	return idx_max;
    }
     
    /*警长死亡*/
    void police_die(){
    	color(yellow);
    	int type;
    	if(idx_police==my_number)
    	{
    		Sleep(1550);
    		cout<<"你是想撕毁警徽还是移交警徽?(撕毁输入1,移交输入2)";
    		
    		cin>>type;
    		while(!(type==1||type==2))
    		{
    			cout<<"请重新输入!\n";
    			cin>>type;
    		}
    	}
    	else{
    		type=rand()%3+1;
    	}
    	if(type==1)
    	{
    		cout<<"警长选择撕毁警徽\n";
    		Sleep(1000);
    		idx_police=-1;
    	}
    	else
    	{
    		int lucky=-1;
    		while(lucky==-1||players[lucky].die_or_life==die)
    			lucky=rand()%player_number;
    		cout<<"警长选择把警徽移交给"<<lucky+1<<"号\n";
    		Sleep(1500);
    		idx_police=lucky; 
    	}
    }
     
    /*故事的最后*/
    void the_end(){
    	system("cls");
    	switch(is_end()){
    		case 1:cout<<"好人胜利\n\n"; break;
    		case 2:cout<<"狼人胜利\n\n"; break;
    		case 3:cout<<"本局平局\n\n"; break;
    	}
    	for(int i=0;i<player_number;i++){
    		cout<<i+1<<"号位:\t";
    		switch(players[i].type){
    			case nvwu: cout<<"女巫\t";break;
    			case yuyanjia: cout<<"预言家\t";break;
    			case cunmin: cout<<"村民\t";break;
    			case langren:cout<<"狼人\t";break;
    			case lieren:cout<<"猎人\t"; break;  
    			case shouwei:cout<<"守卫\t";break;  
    		} 
    		cout<<"最终";
    		switch(players[i].killer){
    			case nvwu:cout<<"被女巫毒死\n"; break;
    			case langren:cout<<"被狼人杀死\n"; break;
    			case good:cout<<"被投票出局\n"; break;
    			case lieren:cout<<"被猎人带走\n";break;
    			default :cout<<"存活\n";
    		}
    		cout<<endl;
    	}
    }
     
    /*主函数*/
    int main(){
    	int wheel=0; 
    	before_game();
    	while(!is_end()){
    		//黑夜准备 
    		something_before_everyday();
    		Sleep(1500); 
    		
    		//黑夜部分 
    		Night(); //进入黑夜! 
    		change_daytime(); //换天 
    		
    		//天亮了 
    		panduansiwang();//判断谁死了 
    		Sleep(2000);
    		system("cls");
    		print();
    		if(is_end()) break;
    		
    		//选警长 
    		if(!wheel&&player_number==12)
    		{
    			choose_police();
    			system("cls");
    			print();
    		}
    		
    		//投票环节 
    		int idx_max=toupiao();//票数最多的人 
    		if(idx_max==idx_police){
    			police_die();
    		}
    		if(players[idx_max].type==lieren){//启动猎人程序 
    			Lieren();
    			if(is_end()) break;
    		}
    		system("cls");
    		print(); 
    		wheel++;
    	}
    	
    	the_end();
    	system("pause");
    	return 0;
    }
    
    # __大乱斗__
    ```c++
    #include<bits/stdc++.h>
    #include<conio.h>
    #include<windows.h>
    using namespace std;
    double shanghai[20]={0.6,1.1,2,3.16,5.5,7,10,20,50,100,146.23,254.13,312,403,601,1023};
    double bosshealth[20]={2,3,4,5.9,8,14,19,32,73,157,200,403,801,1200,3630,20123};
    double wj_shanghai=1,wj_health=10,wj_max_health=10,boss,wj_money;
    void chushihua();
    void game();
    void gongji();
    void goumai();
    void shangdian();
    void zhujiemian();
    void fangyu();
    void cend();
    void chushou();
    void print(char[]);
    int bishou=0,caidao=0,jian=0,shenjian=0;
    double bishou_1=5,caidao_1=17,jian_1=58,shenjian_1=123.1;
    int hat=0,douhui=0,hudun=0,hunjia=0,shendun=0;
    double hat_1=7,douhui_1=21,hudun_1=49,hunjia_1=89,shendun_1=210.4;
    void cend()
    {
        system("cls");
        print("GAME OVER");
        exit(1);
    }
    void game()
    {
        int k;
        chushihua();
        IO:
        printf("请输入对手等级 (0~15)\n");
        scanf("%d",&k);
        if(k>15||k<0)
        {
            system("cls");
            goto IO;
        }
        boss=bosshealth[k];
        system("cls");
        while(wj_health>=0)
        {
            srand(time(NULL));
            QP:
            printf("1.逃跑        2.进攻\n");
            char s=getch();
            if(s<'1'||s>'2')
            {
                system("cls");
                goto QP;
            }
            if(s=='1')
            {
                system("cls");
                zhujiemian();
            }
            system("cls");
            double l=shanghai[k]*((rand()%2)+1)+fabs(double(rand()%100/100-2));
            printf("对手对你造成了%lf点伤害\n",l);
            wj_health-=l;
            printf("你当前剩余血量:%lf\n",wj_health);
            if(wj_health<=0)
                cend();
            double o=wj_shanghai*((rand()%2)+1)+double(rand()%10/10);
            boss-=o;
            printf("你对对手造成了%lf点伤害\n",o);
            printf("对手当前剩余血量:%lf\n\n",boss);
            if(boss<=0)
            {
                printf("胜利!\n获得%lf金币\n\n当前剩余血量:%lf\n",shanghai[k]+3,wj_health);
                wj_money+=shanghai[k]+3;
                printf("\n余额:%lf\n",wj_money);
                getch();
                if(k==15)
                {
                    printf("恭喜玩家!游戏胜利!\n");
                    getch();
                    exit(1);
                }
                system("cls");
                zhujiemian();
            }
        }
    }
    void zhujiemian()
    {
        PO:
        printf("1.商店 2.战斗 3.回血 4.状态\n");
        char k=getch();
        if(k>'4'||k<'1')
        {
            system("cls");
            goto PO;
        }
        if(k=='1')
        {
            system("cls");
            shangdian();
            return;
        }
        if(k=='2')
        {
            system("cls");
            game();
            return;
        }
        if(k=='3')
        {
            system("cls");
            if(wj_money>0)
            {
                wj_money=wj_money*4/5-1;
                chushihua();
                wj_health=wj_max_health;
                printf("回血成功!\n");
                getch();
                system("cls");
                goto PO;
            }
            else
            {
                printf("余额不足!\n");
                getch();
                system("cls");
                goto PO;
            }
        }
        if(k=='4')
        {
            chushihua(); 
            system("cls");
            printf("生命值:%lf\n",wj_health);
            printf("最大生命值:%lf\n",wj_max_health);
            printf("攻击力:%lf\n",wj_shanghai);
            printf("金币:%lf\n",wj_money); 
            getch();
            system("cls");
            goto PO;
        }
        if(k=='5')
        {
            string a;
            system("cls");
            printf("输入密码!\n");
            cin>>a;
            if(a=="songyudashuaibi"||a=="PI")
            {
                wj_money+=1000;
                printf("外挂生效\n");
                Sleep(1000);
                system("cls");
                goto PO;
            }
            printf("外挂失败\n");
            Sleep(1000);
            system("cls");
            goto PO;
        }
    }
    void shangdian()
    {
        LK:
        printf("1.购买 2.返回主界面\n");
        char k=getch();
        if(k!='1'&&k!='2')
        {
            system("cls");
            goto LK;
        }
        if(k=='1')
        {
            system("cls");
            goumai();
            goto LK;
        }
        if(k=='2')
        {
            system("cls");
            zhujiemian();
            return;
        }
    }
    void goumai()
    {
        ML:
        printf("1.攻击 2.防御 3.返回主界面\n");
        char k=getch();
        if(k!='1'&&k!='2'&&k!='3')
        {
            system("cls");
            goto ML;
        }
        if(k=='1')
        {
            system("cls");
            gongji();
            goto ML;
        }
        if(k=='3')
        {
            system("cls");
            zhujiemian();
            return;
        }
        if(k=='2')
        {
            fangyu();
        }
    } 
    void gongji()
    {
        OP:
        system("cls");
        printf("0.返回上界面\n");
        printf("1.返回主界面\n");
        printf("2.匕首 5金币\n");
        printf("3.菜刀 17金币\n");
        printf("4.剑 68金币\n");
        printf("5.圣剑 210金币\n");
        printf("提醒:金币价格与伤害成正比\n");
        char k=getch();
        if(k<'0'||k>'5')
        {
            system("cls");
            goto OP;
        }
        if(k=='0')
        {
            system("cls");
            goumai();
            return;
        }
        if(k=='1')
        {
            system("cls");
            zhujiemian();
            return;
        }
        if(k=='2')
        {
            if(wj_money>=bishou_1)
            {
                chushihua();
                system("cls");
                wj_money-=bishou_1;
                bishou++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            system("cls");
            goto OP;
        }
        if(k=='3')
        {
            if(wj_money>=caidao_1)
            {
                chushihua();
                system("cls");
                wj_money-=caidao_1;
                caidao++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
        if(k=='4')
        {
            if(wj_money>=jian_1)
            {
                chushihua();
                system("cls");
                wj_money-=jian_1;
                jian++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
        if(k=='5')
        {
            if(wj_money>=shenjian_1)
            {
                chushihua();
                system("cls");
                wj_money-=shenjian_1;
                shenjian++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
    }
    void fangyu()
    {
        OP:
        system("cls");
        printf("0.返回上界面\n");
        printf("1.返回主界面\n");
        printf("2.帽子 7金币\n");
        printf("3.头盔 21金币\n");
        printf("4.护盾 49金币\n");
        printf("5.盔甲 89金币\n");
        printf("6.圣盾 210金币\n");
        printf("提醒:金币价格与伤害成正比\n");
        char k=getch();
        if(k<'0'||k>'6')
        {
            system("cls");
            goto OP;
        }
        if(k=='0')
        {
            system("cls");
            goumai();
            return;
        }
        if(k=='1')
        {
            system("cls");
            zhujiemian();
            return;
        }
        if(k=='2')
        {
            if(wj_money>=hat_1)
            {
                chushihua();
                system("cls");
                wj_money-=hat_1;
                hat++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            system("cls");
            goto OP;
        }
        if(k=='3')
        {
            if(wj_money>=douhui_1)
            {
                chushihua();
                system("cls");
                wj_money-=douhui_1;
                douhui++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
        if(k=='4')
        {
            if(wj_money>=hudun_1)
            {
                chushihua();
                system("cls");
                wj_money-=hudun_1;
                hudun++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
        if(k=='5')
        {
                chushihua();
            if(wj_money>=hunjia_1)
            {
                system("cls");
                wj_money-=hunjia_1;
                hunjia++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
        if(k=='6')
        {
            if(wj_money>=shendun_1)
            {
                chushihua();
                system("cls");
                wj_money-=shendun_1;
                shendun++;
                goto OP;
            }
            system("cls");
            printf("余额不足!\n");
            getch();
            goto OP;
        }
    }
    void chushihua()
    {
        wj_max_health=hat*hat_1+douhui*douhui_1+hudun*hudun_1+hunjia*hunjia_1+shendun*shendun_1+10;
        wj_shanghai=bishou*bishou_1+caidao*caidao_1+jian*jian_1+shenjian*shenjian_1+1;
    }
    void print(char a[])
    {
        int s=strlen(a);
        for(int i=0;i<s;i++)
        {
            cout<<a[i];
            Sleep(400);
        }
        getch(); 
        system("cls");
    }
    int main()
    {
        system("title game");
        print("小小阁楼原创出品:打怪小游戏");
        zhujiemian();
        return 0;
    }
    
    

    imageB站视频


    杂交版周年庆

    融合版周年庆

    image

    HTML程序

    你能AKAOI吗(洛谷小游戏)

    <!DOCTYPE html>
    <html>
        
        <head>
            <meta charset="utf-8">
            <title>AK IOI</title>
            <link href="style/main.css?ver=10" rel="stylesheet" type="text/css" encoding="utf-8">
            <link href="style/ai.css?ver=10" rel="stylesheet" type="text/css">
            <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
            <link rel="shortcut icon" href="favicon.ico">
            <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
            <meta name="HandheldFriendly" content="True">
            <meta name="MobileOptimized" content="320">
            <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no">
            <meta property="og:title" content="AK IOI 游戏" />
            <meta property="og:site_name" content="AK IOI 游戏" />
            <meta property="og:description" content="合并评测状态并获得AK!警告:该游戏非常容易上瘾" />
            <meta property="og:image" content="http://gabrielecirulli.github.io/2048/meta/og_image.png" />
            <style>
            .game-container {
                touch-action: none;
            }
            </style>
            <script>
            	localStorage['65536AI_ActualValue'] = false;
            </script>
        </head>
        
        <body>
            <div class="mobile-top"></div>
            <div class="container">
                <div class="game-explanation game-list" style="pointer-events:none;position:absolute;padding-left:540px;padding-top:128px;">
                    <table class="status-list">
                        <style>.status-list th,.status-list td{text-align:left;padding:4px;}</style>
                        <tr>
                            <th>评测状态</th>
                            <th>数值</th>
                        </tr>
                        <tr>
                            <td><span class="tile tile-2 example">CE</span><span class="game-list-label"><strong>C</strong>ompile <strong>E</strong>rror</span></td>
                            <td>2</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-4 example"><i class="fa fa-spin fa-circle-o-notch"></i></span><span class="game-list-label">Judging</span></td>
                            <td>4</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-8 example">RE</span><span class="game-list-label"><strong>R</strong>untime <strong>E</strong>rror</span></td>
                            <td>8</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-16 example">TLE</span><span class="game-list-label"><strong>T</strong>ime <strong>L</strong>imit <strong>E</strong>xceeded</span></td>
                            <td>16</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-32 example">MLE</span><span class="game-list-label"><strong>M</strong>emory <strong>L</strong>imit <strong>E</strong>xceeded</span></td>
                            <td>32</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-64 example">ILE</span><span class="game-list-label"><strong>I</strong>dleness <strong>L</strong>imit <strong>E</strong>xceeded</span></td>
                            <td>64</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-128 example">OLE</span><span class="game-list-label"><strong>O</strong>utput <strong>L</strong>imit <strong>E</strong>xceeded</span></td>
                            <td>128</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-256 example">UKE</span><span class="game-list-label"><strong>U</strong>n<strong>K</strong>nown <strong>E</strong>rror</span></td>
                            <td>256</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-512 example">WA</span><span class="game-list-label"><strong>W</strong>rong <strong>A</strong>nswer</span></td>
                            <td>512</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-1024 example">PC</span><span class="game-list-label"><strong>P</strong>artially <strong>C</strong>orrect</span></td>
                            <td>1024</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-2048 example">AC</span><span class="game-list-label"><strong>AC</strong>cepted</span></td>
                            <td>2048</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-4096 example">PE</span><span class="game-list-label"><strong>P</strong>resentation <strong>E</strong>rror</span></td>
                            <td>4096</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-8192 example">DoJ</span><span class="game-list-label"><strong>D</strong>enial <strong>o</strong>f <strong>J</strong>udging</span></td>
                            <td>8192</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-16384 example">JF</span><span class="game-list-label"><strong>J</strong>udgement <strong>F</strong>ailed</span></td>
                            <td>16384</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-32768 example">AU</span><span class="game-list-label"><strong>AU</strong></span></td>
                            <td>32768</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile-65536 example">AK</span><span class="game-list-label"><strong>AK</strong></span></td>
                            <td>65536</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile--1 example">#</span><span class="game-list-label"><strong>#</strong>pragma ...</span></td>
                            <td>×1</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile--2 example">O2</span><span class="game-list-label">-<strong>O2</strong></span></td>
                            <td>×2</td>
                        </tr>
                        <tr>
                            <td><span class="tile tile--4 example">O3</span><span class="game-list-label">-<strong>O3</strong></span></td>
                            <td>×4</td>
                        </tr>
                    </table>
                </div>
                <div class="heading">
                     <h1 class="title">akioi</h1>
    
                    <div style="float:right">
                      <div class="score-container">0</div>
                      <div class="best-container">0</div>
                    </div>
                </div>
                <p class="game-intro">合并评测状态并得到<strong>AK</strong>!
                    <a class="restart-button" style="float:right;">回卢重造</a>
                </p>
                <div class="controls">
                    <div id="hint-button-container">
                        <button id="hint-button" class="ai-button">获得提示</button>
                    </div>
                    <div id="feedback-container" href="javascript:void(0)" onclick="document.querySelector('#feedback-container').innerHTML='';"></div>
                    <div id="run-button-container">
                        <button id="run-button" class="ai-button">手动模式</button>
                    </div>
                </div>
                <div class="game-container">
                    <div class="game-message">
                        <p></p>
                        <div class="lower">
                            <a class="retry-button">重玩</a>
                            <a class="score-sharing">提交成绩</a>
                        </div>
                    </div>
                    <div class="grid-container">
                        <div class="grid-row">
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                        </div>
                        <div class="grid-row">
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                        </div>
                        <div class="grid-row">
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                        </div>
                        <div class="grid-row">
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                            <div class="grid-cell"></div>
                        </div>
                    </div>
                    <div class="tile-container"></div>
                </div>
                <p class="game-explanation"> <strong class="important">玩法:</strong>使用<strong>方向键 或 手指划屏</strong>的方式移动方块。当相同状态的方块相撞,<strong>它们会合并成两倍数值的方块。</strong><a href="wiki/" target="_blank">详细信息</a>
                </p>
                <p>相关游戏:<a href="https://2048game.com/" target="_blank">原版2048</a> <a href="https://dimit.me/Fe26/index_zh_CN.html" target="_blank">死铁</a></p>
                <p style="margin-top:8px;display:none;" class="game-explanation" id="getfixed"> <strong class="important">提示:</strong>iOS设备的滚动锁定功能存在问题。你可以<a href="javascript:void(0)" onclick="document.querySelector('html').style.position='fixed';">禁止滚动</a> 以获得更好的游戏体验。
                </p>
                <h2><center>排行榜</center></h2>
                <p style="margin-top:-8px;"><center>14 天内的前 100 名&nbsp;<a href="javascript:;" onclick="showrank()">刷新</a></center></p>
                <p class="ranklist-show-area" style="margin-bottom: 300px;"></p>
                <script>
                    var rank_is_loading = false;
                    function showrank() {
                        if(rank_is_loading) return;
                        rank_is_loading = true;
                        $showbox = $('.ranklist-show-area');
                        $showbox.html('正在加载...');
                        $.ajax({
                            type: "GET",
                            cache: false,
                            url: "ranklist/ranklist.php",
                            dataType: "text",
                            error: function(e) {
                                console.log('排行加载失败:',e);
                                $showbox.html('加载失败');
                                rank_is_loading=false;
                            },
                            success: function(e) {
                                $showbox.html(e);
                                rank_is_loading=false;
                            }
                        });
                    }
                    showrank();
                    function hideinfo() {
                        $('.ranklist-info').css('display','none');
                    }
                    function hideann() {
                        $('.ann-info').css('display','none');
                    }
                    function showinfo(id) {
                        $area = $('.info-code');
                        $box = $('.ranklist-info');
                        $.ajax({
                            type: "GET",
                            cache: false,
                            url: "ranklist/get_info.php?gameid="+id,
                            dataType: "text",
                            error: function(e) {
                                console.log('详情加载失败:',e);
                                $area.html('加载失败');
                                $box.css('display','block');
                            },
                            success: function(e) {
                                $area.html(e);
                                $box.css('display','block');
                            }
                        });
                    }
                    function showann(id) {
                        $area = $('.ann-code');
                        $box = $('.ann-info');
                        $.ajax({
                            type: "GET",
                            cache: false,
                            url: "skip-announcement/"+id+".txt",
                            dataType: "text",
                            error: function(e) {
                                console.log('详情加载失败:',e);
                                $area.html('加载失败');
                                $box.css('display','block');
                            },
                            success: function(e) {
                                $area.html(e);
                                $box.css('display','block');
                            }
                        });
                    }
                </script>
                <style>
                    .ranklist-info,
                    .ann-info {
                        position:fixed;
                        width:100%;
                        height:100%;
                        left:0;
                        top:0;
                        background-color:rgba(0,0,0,0.5);
                        z-index:500;
                        /*overflow-y:scroll;*/
                        padding:16px;
                        display:block;
                    }
                    .ranklist-info-inner,
                    .ann-info-inner{
                        width: calc(100% - 56px);
                        height: calc(100% - 56px);
                        background-color:#FFF;
                        z-index:501;
                        padding:12px;
                    }
                    .code-block {
                        border:1px solid #666;
                        background-color: #EEE;
                        font-size:14px;
                        padding:4px;
                        overflow-x:scroll;
                        overflow-y:scroll;
                    }
                    .info-code,
                    .ann-code{
                        width: calc(100% - 13px);
                        height: calc(100% - 45px);
                        margin-bottom:0px;
                        font-size: 17px;
                    }
                </style>
                <div class="ranklist-info" style="display:none;">
                    <div class="ranklist-info-inner">
                        <h3 style="line-height:20%;margin-top:8px;"><a onclick="hideinfo()">×</a>&nbsp;记录详情</h3>
                        <pre class="code-block info-code">
                            Test text
                        </pre>
                    </div>
                </div>
                <div class="ann-info" style="display:none;">
                    <div class="ann-info-inner">
                        <h3 style="line-height:20%;margin-top:8px;"><a onclick="hideann()">×</a>&nbsp;作弊说明</h3>
                        <pre class="code-block ann-code">
                            Test text
                        </pre>
                    </div>
                </div>
                <!--hr>
                Credits moved to wiki.
                <p>Created by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio</a> and conceptually similar to <a href="http://asherv.com/threes/"
                    target="_blank">Threes by Asher Vollmer.</a>
    
                </p>
                <p>AI solver by <a href="https://github.com/ov3y/65536-AI">Matt Overlan</a>
    
                </p>
                <div class="sharing"> <a href="https://localhost:1/share" class="twitter-share-button" data-text="Check out 65536, a game where you join numbers to score high! #65536game #65536ai" data-via="gabrielecirulli">Tweet</a>
    
                    <script>
                    ! function (d, s, id) {
                        var js, fjs = d.getElementsByTagName(s)[0],
                            p = /^http:/.test(d.location) ? 'http' : 'https';
                        if (!d.getElementById(id)) {
                            js = d.createElement(s);
                            js.id = id;
                            js.src = p + '://localhost:1/widgets.js';
                            fjs.parentNode.insertBefore(js, fjs);
                        }
                    }(document, 'script', 'twitter-wjs');
                    </script> <span class="btc-donate">
            <a href="bitcoin:1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i">
              <img src="meta/icon_bitcoin.png">Donate
            </a>
            <span class="address"><code>1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i</code></span>
    </span>
                </div>
            </div-->
            </div>
            <script src="js/animframe_polyfill.js"></script>
            <script src="js/hammer.min.js"></script>
            <script src="js/keyboard_input_manager.js?ver=10"></script>
            <script src="js/html_actuator.js?ver=20"></script>
            <script src="js/grid.js?ver=54"></script>
            <script src="js/tile.js"></script>
            <script src="js/game_manager.js?ver=27"></script>
            <script src="js/application.js?ver=17"></script>
            <!--script src="js/all.js"></script-->
            <script src="js/ai.js?ver=55"></script>
            <!--script src="https://cdn.luogu.org/js/jquery-2.1.1.min.js"></script-->
            <script>
              function IsPC(){    
                var userAgentInfo = navigator.userAgent;  
                var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");    
                var flag = true;
                for (var v = 0; v < Agents.length; v++) {    
                  if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }    
                }    
                return flag;    
              }
              var u = navigator.userAgent;
              var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
              if(!isiOS) document.getElementById("getfixed").style.display="none";
            </script>
            
    
    
            <!--TRAKING CODE PLEASE REMOVE-->
            <script
                async
                src="https://analytics.sparkslab.art/script.js"
                data-website-id="19eea08a-0ecc-4c91-b6fb-1a1234e10586"
                data-domains="apps.ak-ioi.com"
            ></script>
    
            <!--DO NOT REMOVE THIS-->
            <script>
                /**
                 * Tracked:
                 * restart - 重新开始游戏
                 * // end - 游戏结束
                 * submit - 提交成绩
                 */
                /**
                 * The tracking function
                 */
                window.sendAnalyticsEvent = (name) => {
                    if(window.umami) {
                        window.umami.track(name)
                    }
                }
            </script>
        <script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"version":"2024.11.0","token":"177e03f818ae4f26ab3b1ab521701133","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}' crossorigin="anonymous"></script>
    </body>
    
    </html>
    

    image image 学霸" " lsast user 点我吖< ![image](file://C:/Users/DD/Downloads/avatar(5).png) 逐梦卌Naomi 点开 你不配点开 📕 image hydor Line 58, Column 59 image

              .======.
              | INRI |
              |      |
              |      |
     .========'      '========.
     |   _      xxxx      _   |
     |  /_;-.__ / _\  _.-;_\  |
     |     `-._`'`_/'`.-'     |
     '========.`\   /`========'
              | |  / |
              |/-.(  |
              |\_._\ |
              | \ \`;|
              |  > |/|
              | / // |
              | |//  |
              | \(\  |
              |  ``  |
              |      |
              |      |
              |      |
              |      |
    

    \ _ \| // |// _ // _ ^ ^^ ^`^ ^`^^ ^^ ^ `^](https://www.baidu.com/baidu?ie=utf-8&wd=唐人探案街3)


    image

    image


    该用户不懒,但这里啥也没写

    MessageBox

    image

    https://h5-static.talk-cloud.net/static/szbdjy_4.16.0.43/ asset/1c95c78f76425ca1a383.gif LsFcriq6JDAnM97nLAl_Y phone.gif CPC 比赛 显示: https://h5-static.talk-cloud.net/static/szbdjy_4.16.0.43/asset/1c95c78f76425ca1a383.gif$0 https://file:///C:/Users/DD/Desktop/1c95c78f76425ca1a383.gif Waiting 评测:评测请求正在等待被评测机抓取 Fetched 评测:评测请求已被评测机抓取,正在准备开始评测 Compiling 评测:正在编译中 Judging 评测:编译成功,正在评测中 (AC)Accepted 通过:程序输出完全正确 (WA)Wrong Answer 不通过:程序输出与标准答案不一致(不包括行末空格以及文件末空行) (TLE)Time Limit Exceeded 不通过:程序运行时间超过了题目限制 (MLE)Memory Limit Exceeded 不通过:程序运行内存空间超过了题目限制

    (CE)Compile Error 不通过:编译失败
    (SE)System Error 错误:系统错误(如果您遇到此问题,请及时在讨论区进行反馈)
    Canceled 其他:评测被取消
    (UKE)Unknown Error 其他:未知错误
    Ignored 其他:被忽略
    

    test 🆗 http://lvmaojun.com/huaji/

              .======.
              | INRI |
              |      |
              |      |
     .========'      '========.
     |   _      xxxx      _   |
     |  /_;-.__ / _\  _.-;_\  |
     |     `-._`'`_/'`.-'     |
     '========.`\   /`========'
              | |  / |
              |/-.(  |
              |\_._\ |
              | \ \`;|
              |  > |/|
              | / // |
              | |//  |
              | \(\  |
              |  ``  |
              |      |
              |      |
              |      |
              |      |
    

    \ _ \| // |// _ // _ ^ ^^ ^`^ ^`^^ ^^ ^ ^ _______ / ) /_____ | ______ ( ' ) / / __\ _____ |. '| / | \ | / )) |____|/ |-----' /)) -----' ------' _______ / ) / | ______ ( ' ) / / \ _____ |. '| / | \ | / )) ||/ |-----' /_____)) -----' ------' __ __ __ __ __ /__/__/__/__/__/| /__/__/__/__/__/|/ |__'__'__'__'__|/ __ __ __ __ __ /__/__/__/__/__/| /__/__/__/__/__/|/ |__'__'__'__'__|/ __ __ __ __ __ /__/__/__/__/__/| /__/__/__/__/__/|/ |__'__'__'__'__|/ __ __ __ __ __ /__/__/__/__/__/| /__/__/__/__/__/|/ |__'__'__'__'__|/ __ __ __ __ __ /__/__/__/__/__/| /__/__/__/__/__/|/ |__'__'__'__'__|/ __________________,............., /_/_/_/_/_/_/_/_/,-', ,. -,-,--/| /_/_/_/_/_/_/_/,-' // /-| / /--/ / /_/_/_/_/_/_/,-' -''--' ' '--/ / /_/_/_/_/_/_,:................../ / |________,' |/ """""""""""""""""""""""' __________________,............., /_/_/_/_/_/_/_/_/,-', ,. -,-,--/| /_/_/_/_/_/_/_/,-' // /-| / /--/ / /_/_/_/_/_/_/,-' -''--' ' '--/ / /_/_/_/_/_/_,:................../ / |________,' |/ """""""""""""""""""""""' ___ ___ ___ ___ ___.---------------. .'\__\'\__\'\__\'\__\'\__, . ____ ___
    |/ __/ __/ __/ / _:\ |. \ \___ \ \\'\__\'\__\'\__\'\__\'\_.|"". \ \___ \ \\/ __\/ __\/ __\/ __\/ __: \ \\'\__\'\__\'\__\ \__\'\_;----------------- \/ / / / / : | |
    ;| ___ ___ ___ ___ .---------------. .'_'_'_'_'_, . ____ ___ \ |\/ __\/ __\/ __\/ __\/ _:\ |. \ _

    \'_'_'_'_'_.__|"". \ ___
    \/ __/ __/ __/ __/ __:
    \'_'_'_\ _'_;----------------- \\/ \/ \/ \/ \/ : | \|______________________;________________| ___ ___ ___ ___ ___.---------------. .'\__\'\__\'\__\'\__\'\__, . ____ ___
    |/ __/ __/ __/ / _:\ |. \ \___ \ \\'\__\'\__\'\__\'\__\'\_.|"". \ \___ \ \\/ __\/ __\/ __\/ __\/ __: \ \\'\__\'\__\'\__\ \__\'\_;----------------- \/ / / / / : | |;| .-. ,'/ //
    /// // /) /// // //| /// // /// /// // /// (: // /// ;: /// / /::/ / / ' / / (_/ ..................____________,..............., / .-. , ,.--. .-,/_/_/_/_/_/,-', ,. -,-,-- /| / / /- // / / ._/_/_/_/,-' // /-| / /-- / / / -' ' '--' '-'_'/_/_/,-' -''--' `' '-- / / /..................'
    /
    /
    ,:.................. / / | .'
    |
    |
    |
    ; -情人节礼物 | / """"""""""""""""" '"""""""""""""""""""'

               💖💖💖💖                   💖💖💖💖 
              💖💖💖💖💖💖           💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖   💖💖💖💖💖💖💖💖
            <!-- 💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
            💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
              💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                 💖💖💖💖💖💖💖💖💖💖💖💖💖
                     💖💖💖💖💖💖💖💖💖💖
                       💖💖💖💖💖💖💖💖
                          💖💖💖💖💖💖
                             💖💖💖💖
                                💖💖 -->
                                 💖
    
                  💖💖                        💖💖
               💖💖💖💖                   💖💖💖💖 
              💖💖💖💖💖💖           💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖   💖💖💖💖💖💖💖💖
            💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
            💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
              💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                 💖💖💖💖💖💖💖💖💖💖💖💖💖
                     💖💖💖💖💖💖💖💖💖💖
                       💖💖💖💖💖💖💖💖
                          💖💖💖💖💖💖
                             💖💖💖💖
                                💖💖
                                 💖
    
                  💖💖                        💖💖
               💖💖💖💖                   💖💖💖💖 
              💖💖💖💖💖💖           💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖   💖💖💖💖💖💖💖💖
            💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
            💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
             💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
              💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                💖💖💖💖💖💖💖💖💖💖💖💖💖💖
                 💖💖💖💖💖💖💖💖💖💖💖💖💖
                     💖💖💖💖💖💖💖💖💖💖
                       💖💖💖💖💖💖💖💖
                          💖💖💖💖💖💖
                             💖💖💖💖
                                💖💖
                                 💖
    

    3.#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0; }

  • 通过的题目

  • 最近活动

题目标签

一本通编程启蒙
51
CSP-J
7
字符串
5
for循环
4
数据结构
4
GESP
4
2019
3
2020
3
排序
3
搜索
3
枚举
3
NOIP 普及组
3
数组
3
队列
3
for循环双重嵌套
3
GESP三级
3
GESP二级
3
结构体
2
continue
2
循环
2