• 个人简介

    MCOI 出题组成员\color{purple}\huge{\text{MCOI}\ 出题组成员}

    你是第 看我简介的

    大佬

    什么是成功之父?666

    众所周知,失败是成功之母,那成功之父是谁呢?
    其实这个问题很简单!你微信给我转10块钱就是成功支付了!
    

    //强大的c++头文件!!!!!

    #include <algorithm>   
    #include <bitset>     
    #include <cctype>
    #include <cerrno>
    #include <clocale>
    #include <cmath>
    #include <complex>    
    #include <cstdio>
    #include <cstdlib>
    #include <cstring>
    #include <ctime>
    #include <deque>      
    #include <exception>  
    #include <fstream>
    #include <functional>  
    #include <limits>
    #include <list>      
    #include <map>      
    #include <iomanip>
    #include <ios>      
    #include <iosfwd>     
    #include <iostream>
    #include <istream>    
    #include <ostream>    
    #include <queue>     
    #include <set>      
    #include <sstream>   
    #include <stack>        
    #include <stdexcept>    
    #include <streambuf>   
    #include <string>     
    #include <utility>     
    #include <vector>     
    #include <cwchar>
    #include <cwctype>
    #include <bits/stdc++.h>
    

    下面没有了

    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    真没了
    

    **这是一个推箱子的游戏(w,s,a,d移动),有多少人没看见?隐蔽一点!😄 **

    #include<bits/stdc++.h>
    #include <conio.h>
    
    /*地图模子
    人物    ※ 5   
    箱子    □ 3 
    墙壁    ■ 1
    金币1   ☆ 4
    金币+箱 ★ 7
    
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0
      
    */ 
    using namespace std;
    int x,y,l,cnt,ml=3;
    char mov; 
       int a[12][12];
       int b[4][12][12]={
       
    0,0,0,1,1,1,0,0,0,0,0,0,
    0,0,0,1,4,1,0,0,0,0,0,0,
    0,0,0,1,0,1,1,1,1,0,0,0,
    0,1,1,1,3,0,3,4,1,0,0,0,
    0,1,4,0,3,5,1,1,1,0,0,0,
    0,1,1,1,1,3,1,0,0,0,0,0,
    0,0,0,0,1,4,1,0,0,0,0,0,
    0,0,0,0,1,1,1,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0, 
    
    1,1,1,1,1,0,0,0,0,0,0,0,
    1,5,0,0,1,0,0,0,0,0,0,0,
    1,0,3,3,1,0,1,1,1,0,0,0,
    1,0,3,0,1,0,1,4,1,0,0,0,
    1,1,1,0,1,1,1,4,1,0,0,0,
    0,1,1,0,0,0,0,4,1,0,0,0,
    0,1,0,0,0,1,0,0,1,0,0,0,
    0,1,0,0,0,1,1,1,1,0,0,0,
    0,1,1,1,1,1,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0, 
                    
    0,0,0,0,0,1,0,1,0,0,0,0,
    0,0,0,0,1,0,0,1,0,0,0,0,
    0,0,0,1,1,1,1,1,1,1,0,0,
    0,0,1,4,0,0,0,3,5,0,0,0,
    0,1,1,1,1,1,1,1,1,1,0,0,
    1,0,0,0,0,0,0,1,0,0,0,0,
    0,0,0,0,0,0,0,1,0,0,0,0,
    0,0,0,0,0,0,0,1,0,0,0,0,
    0,0,0,0,0,0,0,1,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0                  
                     
                
                     
                     
                       };
    
    void draw()
    {  
             system("cls");
             cout<<"关卡:"<<l<<endl; 
    		for(int i=0;i<12;i++)
    	{
    		for(int j=0;j<12;j++)
    		{   
    		  
    			if(a[i][j]==1)
    			{
    				printf("■");
    			}
    			else if(a[i][j]==4)
    			{
    				printf("☆");
    			}
    			else if(a[i][j]==3)
    			{
    				printf("□");
    			}
    			else if(a[i][j]==5||a[i][j]==9)
    			{   
    			    x=i;
    			    y=j;
    			    printf("※");
    			}
    			else if(a[i][j]==0)
    			{
    				printf("  ");
    			}
    			else if(a[i][j]==7)
    			{
    				printf("★");
    			 } 
    		}
    		cout<<endl;
    	}
    }
    bool check()
    {
    		for(int i=0;i<12;i++)
    	{
    		for(int j=0;j<12;j++)
    		{   
    			if(a[i][j]==4||a[i][j]==3||a[i][j]==9)
    			{
    				return true; 
    			}
    		}
    	}
    	return false;
    }
    void cp(int l) 
    {
    	    for(int i=0;i<12;i++)
        {
        	for(int j=0;j<12;j++)
        	{
        		a[i][j]=b[l-1][i][j];
    		}
    	}
    
    }
    void play()
    {   
         if(l>ml)
    	 { 
    	   cout<<"已超过最大关,再选一个起点开始吧!";
    	   cin>>l;
    	 } 
    	 cp(l);
    	 draw();
    	while(check())
    	{
    	  mov=getch();
    	  if(mov=='s'||mov=='S')
         {
              if(a[x+1][y]==0||a[x+1][y]==4) 
           {
            a[x][y]-=5;
            a[x+1][y]+=5;
           }
            else if((a[x+1][y]==3||a[x+1][y]==7)&&(a[x+2][y]==0||a[x+2][y]==4))  
           {
             a[x][y]-=5;
             a[x+1][y]+=2;
             a[x+2][y]+=3;
           }
         }
         if(mov=='w'||mov=='W')
         {
              if(a[x-1][y]==0||a[x-1][y]==4) 
           {
            a[x][y]-=5;
            a[x-1][y]+=5;
           }
            else if((a[x-1][y]==3||a[x-1][y]==7)&&(a[x-2][y]==0||a[x-2][y]==4)) 
           {
             a[x][y]-=5;
             a[x-1][y]+=2;
             a[x-2][y]+=3;
           }
         }
         if(mov=='a'||mov=='A')
         {
              if(a[x][y-1]==0||a[x][y-1]==4) 
           {
            a[x][y]-=5;
            a[x][y-1]+=5;
           }
            else if((a[x][y-1]==3||a[x][y-1]==7)&&(a[x][y-2]==0||a[x][y-2]==4)) 
           {
             a[x][y]-=5;
             a[x][y-1]+=2;
             a[x][y-2]+=3;
           }
         }
          if(mov=='d'||mov=='D')
         {
              if(a[x][y+1]==0||a[x][y+1]==4) 
           {
            a[x][y]-=5;
            a[x][y+1]+=5;
           }
            else if((a[x][y+1]==3||a[x][y+1]==7)&&(a[x][y+2]==0||a[x][y+2]==4)) 
           {
             a[x][y]-=5;
             a[x][y+1]+=2;
             a[x][y+2]+=3;
           }
         }
       
    	  draw();
    	}
    	cout<<"恭喜过关!";
    	l++; 
    	play();
    }
    
    int main()
    {  
        cout<<"********************************"<<endl;
    	cout<<"*                              *"<<endl;
    	cout<<"*                              *"<<endl;
    	cout<<"*            推箱子            *"<<endl;
    	cout<<"*                              *"<<endl;
    	cout<<"*                      v1.0    *"<<endl;
    	cout<<"********************************"<<endl;
        cout<<"请输入关卡";
        cin>>l;
    	play();
     return 0;
    }
    

    huhe的各网站密码

  • 通过的题目

  • 最近活动

  • 最近编写的题解

题目标签

入门
10
有手就行
9
动态规划
4
题目类型
4
搜索
3
不要乱动
3
新比赛备用
3
其他
2
对拍
2
背包
2
深搜
2
语言
2
程序设计基础
2
系统测试
1
算法基础
1
交互题
1
交互
1
客观题
1
快速幂
1
HACK(最新添加不稳定)
1