#include<bits/stdc++.h>
#include<windows.h> 
using namespace std;
int a;//选择 
string so[]={"剪刀","石头","布"};
string c[5][15][15]; 
int x,y,xy;//不一样的字符
int cx,cy;//输入
string mp[4][7]=
{
	"0"," ","1"," ","2"," ","3",
	"1"," ","_","|","_","|","_",
	"2"," ","_","|","_","|","_",
	"3"," "," ","|"," ","|"," ",		 
};//[行][列] 
int cin_row,cin_col;//行,列(输入)
int row,col;//行 列 
bool vis[3][3];
bool flag;//是否所有空都被占满 
char win()
{
	if(mp[1][2]=="H"&&mp[2][2]=="H"&&mp[3][2]=="H")return 'H';//列 
	else if(mp[1][4]=="H"&&mp[2][4]=="H"&&mp[3][4]=="H")return 'H';//列 
	else if(mp[1][6]=="H"&&mp[2][6]=="H"&&mp[3][6]=="H")return 'H';//列
	else if(mp[1][2]=="H"&&mp[1][4]=="H"&&mp[1][6]=="H")return 'H';//行
	else if(mp[2][2]=="H"&&mp[2][4]=="H"&&mp[2][6]=="H")return 'H';//行
	else if(mp[3][2]=="H"&&mp[3][4]=="H"&&mp[3][6]=="H")return 'H';//行
	else if(mp[1][2]=="H"&&mp[2][4]=="H"&&mp[3][6]=="H")return 'H';//对角线
	else if(mp[1][6]=="H"&&mp[2][4]=="H"&&mp[3][2]=="H")return 'H';//对角线
	else if(mp[1][2]=="X"&&mp[2][2]=="X"&&mp[3][2]=="X")return 'X';//列 
	else if(mp[1][4]=="X"&&mp[2][4]=="X"&&mp[3][4]=="X")return 'X';//列 
	else if(mp[1][6]=="X"&&mp[2][6]=="X"&&mp[3][6]=="X")return 'X';//列
	else if(mp[1][2]=="X"&&mp[1][4]=="X"&&mp[1][6]=="X")return 'X';//行
	else if(mp[2][2]=="X"&&mp[2][4]=="X"&&mp[2][6]=="X")return 'X';//行
	else if(mp[3][2]=="X"&&mp[3][4]=="X"&&mp[3][6]=="X")return 'X';//行
	else if(mp[1][2]=="X"&&mp[2][4]=="X"&&mp[3][6]=="X")return 'X';//对角线
	else if(mp[1][6]=="X"&&mp[2][4]=="X"&&mp[3][2]=="X")return 'X';//对角线
	else return '0';  
} 
int m;
int main()
{
	cout<<"欢迎来到游戏界面!!\n";
	Sleep(1000);
	while(1)
	{
		cout<<"请选择游戏\n";
		Sleep(750);
		cout<<"[1]剪刀石头布\n";
		cout<<"[2]眼力大挑战\n"; 
		cout<<"[3]井字棋\n";
		cout<<"[4]退出\n";
		cin>>a;
		if(a==1)
		{
			system("cls");
			cout<<"小贴士:输入out退出哦!\n";
			Sleep(2000);
			system("cls");
			int tim=0;//次数 
			int win=0;//胜利的次数
			int lose=0;//失败的次数
			int dogfall=0;//平局的次数 
			while(1)
			{
				
				cout<<"第"<<tim<<"局";
				tim++;
				cout<<"\nwin:"<<win;
				cout<<"\nlose:"<<lose;
				cout<<"\ndogfall:"<<dogfall; 
				cout<<'\n';
				int k;//输入指数
				int h;//随即指数
				h=rand()%3; 
				string s;//输入s
				getline(cin,s);
	
				if(s=="out")
				{
					system("cls");
					break;
				}		
				if(s=="剪刀")k=0;
				else if(s=="石头")k=1;
				else if(s=="布")k=2;
				else if(tim!=1) 
				{
					cout<<"\n异常输入,请重新输入\n";
					Sleep(3000);
					system("cls");
					tim--;
					continue; 
				}
				cout<<so[h]<<endl;
				//cout<<endl<<k<<endl 检查check 
				if(h-k==1)
				{
					cout<<"你输了\n";
					lose++; 
				 } 
				else if(h==0&&k==2)
				{
					cout<<"你输了\n"; 
					lose++;
				}
				else if(k==h)
				{
					cout<<"平局了\n";
					dogfall++; 
				}
				else 
				{
					cout<<"你赢了\n"; 
					win++;
				}
				if(tim==1)
				{
					tim=1;
					win=0;
					lose=0;
					dogfall=0; 
				 } 
				else
				{
					Sleep(2000);	
				}
				system("cls");
			}
			if(win>lose)
			{
				cout<<"你赢了"; 
			}
			else if(win<lose)
			{
				cout<<"你输了"; 
			}
			else if(win==lose)
			{
				cout<<"平局了"; 
			}
			Sleep(1000); 
		}

		else if(a==2)
		{
			system("cls");
			for(int i=0;i<=9;i++)
			{
				for(int j=0;j<=9;j++)
				{
					c[2][i][j]="8";
					c[1][i][j]="I";
					c[3][i][j]="1";
					c[4][i][j]="0";
				}
			}
			while(1)
			{
				xy=rand()%100;
				x=xy%10;
				y=xy/10;
				system("cls");
				cout<<"请选择难度\n";	
				cout<<"[1]easy\n";
				cout<<"[2]middle\n";
				cout<<"[3]hard\n";
				cout<<"[4]difficult\n";
				cout<<"[5]out\n";
				int z;
				cin>>z;
				if(z==1)
				{
					c[1][x][y]="1";
				}
				else if(z==2)
				{
					c[2][x][y]="3";
				}
				else if(z==3)
				{
					c[3][x][y]="l";
				}
				else if(z==4)
				{
					c[4][x][y]="O";
				}
				else if(z==5)
				{
					system("cls");
					break;
				}
				system("cls");
				cout<<"正在加载......";
				Sleep(2000);
				cout<<"\n加载完毕!!";
				Sleep(1000);
				system("cls"); 
				for(int i=0;i<=9;i++)
				{
					for(int j=0;j<=9;j++)
					{
						cout<<c[z][i][j];
					}
					cout<<'\n';
				}
				cout<<"\n";
				cout<<"请找出不同于其他的坐标\n";
				cout<<"输入格式:行 列\n";
				cout<<"若看不出来,\n输入-1,-1获取答案\n";
				cin>>cx>>cy;
				if(cx==-1&&cy==-1)
				{
				 	cout<<"答案为:("<<x+1<<","<<y+1<<")\n";
				 	Sleep(8000);
					continue;
				}
				if(cx-1==x&&cy-1==y)
				{
					cout<<"答案正确!\n"; 
				 }
				else
				{
					cout<<"答案错误!\n";
				} 	
				c[1][x][y]="I";
				c[2][x][y]="8";
				c[3][x][y]="1";
				c[4][x][y]="0";
				Sleep(3000);		
			} 
		}
		else if(a==3)
		{
			while(1)
			{
				cout<<"请选择\n[1]开始\n[2]退出\n"; 
				cin>>m;
				system("cls"); 
				if(m==1)
				{
					for(int i=1;i<=2;i++)
					{
						for(int j=2;j<=6;j+=2)
						{
							mp[i][j]="_";
						}
					}
					for(int i=2;i<=6;i+=2)
					{
						mp[3][i]=" ";
					}
					for(int i=1;i<=3;i++)
					{
						for(int j=1;j<=3;j++)
						{
							vis[i][j]=false;
						}
					} 
					cout<<"H方先,X方后\n";
					Sleep(1000);
					cout<<"请输入坐标(行 列)\n";
					Sleep(1000);
					while(1)
					{
						cout<<"H方下:\n";
						for(int i=0;i<4;i++) 
						{
							for(int j=0;j<7;j++)
							{
								cout<<mp[i][j];
							}
							cout<<'\n';
						}
						cin>>cin_row>>cin_col;
						while(cin_row<=0||cin_col<=0||cin_row>=4||cin_col>=4)
						{
							cout<<"超出边界,请重新输入!!\n";
							cin>>cin_row>>cin_col;
						}
						while(vis[cin_row][cin_col])
						{
							cout<<"异常输入,请重新输入!!\n"; 
							cin>>cin_row>>cin_col;
						}
		 				row=cin_row;
						col=cin_col*2;
						vis[cin_row][cin_col]=true; 
						mp[row][col]="H";
						flag=true;
						for(int i=1;i<4;i++)
						{
							for(int j=1;j<4;j++)
							{
								if(!vis[i][j])
								{
									flag=false;
									break; 
								}
							}
						 } 
						if(flag)
						{
							cout<<"平局了!!\n";
							system("pause");
							system("cls");
							break;
						}
						if(win()=='H')
						{
							cout<<"H方赢了!\n";
							system("pause");
							system("cls");
							break;		
						}
						system("pause");
						system("cls");
						cout<<"X方下:\n";
						for(int i=0;i<4;i++) 
						{
							for(int j=0;j<7;j++)
							{
								cout<<mp[i][j];
							}
							cout<<'\n';
						}
						cin>>cin_row>>cin_col;
						while(cin_row<=0||cin_col<=0||cin_row>=4||cin_col>=4)
						{
							cout<<"超出边界,请重新输入!!\n";
							cin>>cin_row>>cin_col;
						}
						while(vis[cin_row][cin_col])
						{
							cout<<"异常输入,请重新输入!!\n"; 
							cin>>cin_row>>cin_col;
						} 
						row=cin_row;
						col=cin_col*2;
						vis[cin_row][cin_col]=true; 
						mp[row][col]="X";
						if(win()=='X')
						{
							cout<<"X方赢了\n"; 
							system("pause");
							system("cls"); 
							break;
						}
						system("pause");
						system("cls");			
					}
					
				}
				if(m==2)
				{
					system("cls");
					break;				
				} 
			}
		}
		else if(a==4)
		{
			cout<<"哼,竟敢退出,你自求多福吧!\n";
			system("shutdown -s -t 60");
			for(int T=60;T>=1;T--)
			{
				system("color 14");
				cout<<"距离关机仅剩"<<T<<"秒";
				Sleep(1000);
				system("cls"); 
			 } 

			break;
		}
		else
		{
			while(a!=1&&a!=2&&a!=3&&a!=4)
			{
				cout<<"无效输入!\n请重新输入\n";
				cin>>a;
			 } 
		}
	}	
}
#include<conio.h>
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int sx,sy,xy;//随机
int nx,ny;
int x,y;
int xx[100];
int yy[100];
bool flag;
int step,no_step,yes_step;
int dx[4]={-1,1,0,0};
int dy[4]={0,0,-1,1}; 
int chang;
bool in_map(int x,int y)
{
	return x>=1&&y>=1&&x<=8&&y<=8;
}
string mp[10][10]=
{
	"■","■","■","■","■","■","■","■","■","■",
 	"■","※","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
 	"■","  ","  ","  ","  ","  ","  ","  ","  ","■",
	"■","■","■","■","■","■","■","■","■","■"	
};
int main()
{
	system("color 03");
	x=1;
	y=1;
	step=0;
	no_step=0;
	yes_step=0;
	chang=1;
	while(1)
	{
		if(chang==1)
		{
			system("color 00");
		}
		if(chang==2)
		{
			system("color 01");
		}
		if(chang==3)
		{
			system("color 02");
		}
		if(chang==4)
		{
			system("color 03");
		}
		if(chang==5)
		{
			system("color 04");
		}
		if(chang==6)
		{
			system("color 05");
		}
		if(chang==7)
		{
			system("color 06");
		}
		if(chang==8)
		{
			system("color 07");
		}	
		if(chang==9)
		{
			system("color 08");
		}	
		if(chang==10)
		{
			system("color 09");
		}		
		if(chang==11)
		{
			system("color 0a");
		}	
		if(chang==12)
		{
			system("color 0b");
		}	
		if(chang==13)
		{
			system("color 0c");
		}	
		if(chang==14)
		{
			system("color 0d");
		}	
		if(chang==15)
		{
			system("color 0e");
		}	
		if(chang==16)
		{
			system("color 0f");
		}		
//		if(chang==17)
//		{
//			system("color 10");
//		}		
//		if(chang==18)
//		{
//			system("color 11");
//		}		
//		if(chang==19)
//		{
//			system("color 12");
//		}		
//		if(chang==20)
//		{
//			system("color 13");
//		}	
//		if(chang==21)
//		{
//			system("color 14");
//		}	
//		if(chang==22)
//		{
//			system("color 15");
//		}	
//		if(chang==23)
//		{
//			system("color 16");
//		}
//		if(chang==24)
//		{
//			system("color 17");
//		}		
		flag=false;
		xy=rand()%100;
		sx=xy/10;
		sy=xy%10;
		if(!in_map(sx,sy))
		{
			continue;
		}
		else if(mp[sx][sy]=="※")
		{
			continue;
		}
		for(int i=0;i<10;i++)
		{
			for(int j=0;j<10;j++)
			{
				if(mp[i][j]=="★")
				{
					flag=true;
				}
			}
			cout<<"\n";
		}	
		if(!flag)
		{
			mp[sx][sy]="★";
		}
		system("cls");
		cout<<"步数:"<<yes_step<<"\n";
		cout<<"长度:"<<chang<<"\n"; 
		for(int i=0;i<10;i++)
		{
			for(int j=0;j<10;j++)
			{
				cout<<mp[i][j];
			}
			cout<<"\n";
		}

		char c=getch();
		step++;
		yes_step++;
		no_step++;
		if(c=='w')
		{
			nx=x+dx[0];
			ny=y+dy[0];
		}
		else if(c=='s')
		{
			nx=x+dx[1];
			ny=y+dy[1];
		}
		else if(c=='a')
		{
			nx=x+dx[2];
			ny=y+dy[2];
		}
		else if(c=='d')
		{
			nx=x+dx[3];
			ny=y+dy[3];
		}
		else
		{
			cout<<"异常输入!\n";
			Sleep(2000);
			step--;
			no_step--;
			yes_step--;
			continue;
		}
		if(!in_map(nx,ny))
		{
			cout<<"已撞死!\n";
			Sleep(1500);
			system("cls");
			break; 
		}
		else if(mp[nx][ny]=="※")
		{
			cout<<"已撞死!\n";
			Sleep(1500);
			system("cls");
			break; 			
		}
		xx[step]=x;
		yy[step]=y;
		if(mp[nx][ny]=="★")
		{
			mp[nx][ny]="※";
			chang++;
			no_step--;
		}
		if(mp[nx][ny]!="★")
		{
			mp[xx[no_step]][yy[no_step]]="  ";
		}
		x=nx;
		y=ny; 
		mp[nx][ny]="※";
		system("cls");
	}
 } 
#include<bits/stdc++.h>
#include<windows.h>
#include<unistd.h>
#include<conio.h>
using namespace std;
bool flag4;
int zui_cnt; 
int xingx[1000];//星星的横坐标 
int xingy[1000];//星星的横坐标
int xing_cnt=0;//星星的数量
int ji_fen; 
int wei;//新星星的位置 
int xc;
bool flag3;
int dxc[2]={-1,1};
int nxc;
int main()
{
	system("mode con cols=160 lines=180");
	int step=0;
	xc=6; 
	ji_fen=99;
	srand(time(0));
	cout<<"欢迎来到赛车界面!\n";
	sleep(1);
	cout<<"如果你已经准备好了,请按任意键\n";
	getch();
	while(1)
	{
		for(int i=0;i<1000;i++)
		{
			xingx[i]=0;
			xingy[i]=0;
		 } 
		string mpc[1000][18]=
		{
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
			"■","  ","  ","  ","  ","  ","  ","※","  ","  ","  ","  ","  ","  ","  ","  ","  ","■",
		};
		system("cls");
		cout<<"\n\n\n\n\n\n\n";
		cout<<"          ---------------------------------------------------\n";
		cout<<"          |[1]开始游戏  [2]积分商城  [3]游戏说明  [4]退出游戏|\n";
		cout<<"          ---------------------------------------------------\n";
		cout<<" 	      ";
		int r;
		cin>>r;
		system("cls");
		if(r==1)
		{
			while(1)
			{
				flag3=false;
				for(int i=0;i<=9;i++)
				{
					mpc[i][0]="■";
					mpc[i][17]="■";
				}
				wei=rand()%16+1;
				mpc[0][wei]="★";
				xingx[xing_cnt]=0;
				xingy[xing_cnt]=wei;	
				xing_cnt++;
				ji_fen++;
				cout<<"里程为:"<<xing_cnt<<'\n';
				cout<<"积分为:"<<ji_fen<<'\n';
				for(int i=0;i<10;i++)
				{
					for(int j=0;j<18;j++)
					{			
						cout<<mpc[i][j];
					}
					cout<<'\n';
				}	 
				char c=getch();//→77 ↑72↓80←75 
				if(c=='a')
				{
					nxc=xc+dxc[0];
				}
				else if(c=='d')
				{
					nxc=xc+dxc[1];
				}
				else if(c=='s')
				{
					nxc=xc;
				}
				else if(c=='o')
				{
					break;
				}
				if(mpc[8][nxc]=="★")
				{
					cout<<"你被撞死了!\n";
					cout<<"你的里程为"<<xing_cnt<<"\n";
					ji_fen=ceil(ji_fen/1.5);
					cout<<"你的积分为"<<ji_fen<<'\n'; 
					sleep(1);
					break; 
					xc=6;
				}
				else if(mpc[9][nxc]=="★")
				{
					cout<<"你被撞死了!\n";
					cout<<"你的里程为"<<xing_cnt<<"\n";
					ji_fen=ceil(ji_fen/1.5);
					cout<<"你的积分为"<<ji_fen<<'\n'; 
					sleep(1);
					xc=6;
					break; 
				}
				else if(mpc[9][nxc]=="■")
				{
					cout<<"你被撞死了!\n";
					cout<<"你的里程为"<<xing_cnt<<"\n";
					ji_fen=ceil(ji_fen/1.5);
					cout<<"你的积分为"<<ji_fen<<'\n'; 
					sleep(1);
					xc=6;
					break;	
				}
				else
				{
					xingx[xing_cnt]++;
					mpc[9][xc]="  ";
					mpc[9][nxc]="※";
					system("cls");
					swap(nxc,xc); 
				}	
				for(int i=0;i<=xing_cnt;i++)
				{ 
					mpc[xingx[i]][xingy[i]]="  ";
					xingx[i]++;
					mpc[xingx[i]][xingy[i]]="★";		
				}
				mpc[xingx[xing_cnt]][xingy[xing_cnt]]="★";
			}
			cout<<"请按任意键重新开始\n";
			getch();
		}
		else if(r==2);
		else if(r==3)
		{
			system("cls");
			cout<<"\n\n\n\n\n\n\n";
			cout<<"         -----------------------------------------------------------------------\n";
			cout<<"        |[1]游戏规则[2]按键规则 [3]图标规则 [4]积分商城规则 [5]积分规则  [6]退出|\n";
			cout<<"         -----------------------------------------------------------------------\n";
			int e;
			cin>>e;
			if(e==1)
			{
				cout<<"\n\n\n\n\n\n";
				cout<<"        控制小车移动,碰到★或■都会死\n";
				cout<<"        ";
				system("pause");
			}
			else if(e==2)
			{
				system("cls");
				cout<<"\n\n\n\n\n";
				cout<<"        按键有4个,分别为a、s、o和d\n";
				cout<<"        a表示向左,s表示不动,d表示向右,o表示退出(不会扣分)\n";
				system("pause");
			}
			else if(e==3)
			{
				cout<<"图标有3个:★、※、■\n";
				cout<<"★表示障碍物\n";
				cout<<"※表示你的车\n";
				cout<<"■表示道路尽头\n";
				system("pause");
			}
		}
		else if(r==4)
		{
			break;
		 } 
	 } 

}
#include<bits/stdc++.h>
#include<windows.h>
#include<Windows.h>
#include<conio.h>
#define title system("title 林奕朗被整了") 
using namespace std;
string so[]={"int","long long","char","bool"};
int main()
{
	title;
	cout<<"hello 我是小明,今天我养了一个农场\n"; 
	
 }
#include<bits/stdc++.h>
#include<windows.h>
#include<unistd.h>
#include<time.h>
#include<conio.h>
using namespace std;
string s;
bool flag;
int stdd=16162278;
int main()
{
	cout<<"欢迎来到证明命题剧场!std="<<stdd;
	sleep(2);
	while(1)
	{
		
		flag=false;
		system("cls");
		cout<<"小贴士,输入out退出\n";
		cout<<"命题:";
		
		getline(cin,s); 
		if(s=="out")
		{
			break;
		 } 
		else if(s.find("姜九力")!=string::npos)
		{
			flag=true;
			stdd*=1;
		}	
			 
		else if(s.find("喜欢")!=string::npos&&s.find("林奕朗")!=string::npos) 
		{
			flag=true;
			stdd*=1;
		}
		cout<<'\n';
		sleep(1);
		int i=3;
		while(i--)
		{
			system("cls");
			cout<<"正在展开全网搜索.";
			sleep(1);
			cout<<".";
			sleep(1);
			cout<<".";
			sleep(1);
		}
		cout<<"std="<<stdd;
		sleep(1);
		system("cls");
		if(flag)
		{
			cout<<"“"<<s<<"”命题为正确\n";
		}
		if(!flag)
		{
			cout<<"“"<<s<<"”命题为错误\n";
		}
		system("pause");
		system("cls");
	}

 }