• 个人简介

    
    一.自制破烂小代码
      
    1.什么球(语言:c++98)
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<"这是什么球 O\n0:篮球 1:足球 2:排球 3:乒乓球\n";
    	int a;
    	cin>>a;
    	if(a%4==0){
    		cout<<"错,是足球\n"; 
    	}
    	if(a%4==1){
    		cout<<"错,是篮球\n"; 
    	}
    	if(a%4==2){
    		cout<<"错,是足球\n"; 
    	}
    	if(a%4==3){
    		cout<<"错,是足球\n"; 
    	}
    	cout<<"再来一次,这是什么球 O\n0:篮球 1:足球 2:排球 3:乒乓球\n";
    	int b;
    	cin>>b;
    	if(a%4==0){
    		cout<<"错,是排球\n"; 
    	}
    	if(a%4==1){
    		cout<<"错,是排球\n"; 
    	}
    	if(a%4==2){
    		cout<<"错,是足球\n"; 
    	}
    	if(a%4==3){
    		cout<<"错,是排球\n"; 
    	}
    	cout<<"最后再来一次,这是什么球 O\n0:篮球 1:足球 2:排球 3:乒乓球\n";
    	int c;
    	cin>>c;
    	if(c%4==0){
    		cout<<"错,是乒乓球\n"; 
    	}
    	if(c%4==1){
    		cout<<"错,是乒乓球\n"; 
    	}
    	if(c%4==2){
    		cout<<"错,是乒乓球\n"; 
    	}
    	if(c%4==3){
    		cout<<"错,是排球\n"; 
    	}
    }
    
    2.你是狗吗(语言:c++98)
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<"你是狗吗\n0: 是 1:不是 2:不是也是 3:是也不是\n";
    	int a;
    	cin>>a;
    	if(a%4==0){
    		cout<<"你是一只诚实的狗\n"; 
    	}
    	if(a%4==1){
    		cout<<"你是一只不诚实的狗\n"; 
    	}
    	if(a%4==2){
    		cout<<"你是一只正常的狗\n"; 
    	}
    	if(a%4==3){
    		cout<<"你是一只普通的狗\n"; 
    	}
    	cout<<"你是人吗\n0: 是 1:不是 2:不是也是 3:是也不是\n";
    	int b;
    	cin>>b;
    	if(b%4==0){
    		cout<<"你是一个不诚实的人\n"; 
    	}
    	if(b%4==1){
    		cout<<"你是一个诚实的人\n"; 
    	}
    	if(b%4==2){
    		cout<<"你是一个正常的人\n"; 
    	}
    	if(b%4==3){
    		cout<<"你是一个普通的人\n"; 
    	}
    }
    
    3.丧尸末日【坑人版】(语言:c++98)
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<"游戏开始,请选择你要去的地点 0家里 1学校 2厕所\n"; 
    	int a;
    	cin>>a;
    		if(a%3==0){
    		cout<<"家里来了一群丧尸,你打算怎样 0逃走 1躲进房间 2不动\n";
    		int b ;
    		cin>>b;
    		if(b%3==0){
    			cout<<"你一推开门,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int c;
    			cin>>c;
    			if(c%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(b%3==1){
    			cout<<"你一进房间,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int d;
    			cin>>d;
    			if(d%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(b%3==2){
    			cout<<"你被丧尸吃了,游戏失败\n"; 
    		}
    	}
    	if(a%3==1){
    		cout<<"学校里来了一群丧尸,你打算怎样 0逃走 1躲进教室 2不动\n";
    		int e ;
    		cin>>e;
    		if(e%3==0){
    			cout<<"你一出大门,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int f;
    			cin>>f;
    			if(f%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(e%3==1){
    			cout<<"你一进教室,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int g;
    			cin>>g;
    			if(g%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(e%3==2){
    			cout<<"你被丧尸吃了,游戏失败\n"; 
    		}
    	}
    	if(a%3==2){
    		cout<<"厕所里来了一群丧尸,你打算怎样 0逃走 1躲进隔间 2不动\n";
    		int h ;
    		cin>>h;
    		if(h%3==0){
    			cout<<"你一跑出去,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int i;
    			cin>>i;
    			if(i%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(h%3==1){
    			cout<<"你一进隔间,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int j;
    			cin>>j;
    			if(j%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(h%3==2){
    			cout<<"你被丧尸吃了,游戏失败\n"; 
    		}
    	}
    }
    
    4.丧尸末日【正常版】(语言:c++98)
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<"游戏开始,请选择你要去的地点 0家里 1学校 2厕所\n"; 
    	int a;
    	cin>>a;
    		if(a%3==0){
    		cout<<"家里来了一群丧尸,你打算怎样 0逃走 1躲进房间 2不动\n";
    		int b ;
    		cin>>b;
    		if(b%3==0){
    			cout<<"你一推开门,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int c;
    			cin>>c;
    			if(c%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(b%3==1){
    			cout<<"你一进房间,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int d;
    			cin>>d;
    			if(d%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(b%3==2){
    			cout<<"丧尸死了,你逃了出去,游戏成功"; 
    		}
    	}
    	if(a%3==1){
    		cout<<"学校里来了一群丧尸,你打算怎样 0逃走 1躲进教室 2不动\n";
    		int e ;
    		cin>>e;
    		if(e%3==0){
    			cout<<"你一出大门,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int f;
    			cin>>f;
    			if(f%2==0){
    				cout<<"你诈尸后丧尸已经死了,你逃走了,游戏成功\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(e%3==1){
    			cout<<"你一进教室,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int g;
    			cin>>g;
    			if(g%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(e%3==2){
    			cout<<"你被丧尸吃了,游戏失败\n"; 
    		}
    	}
    	if(a%3==2){
    		cout<<"厕所里来了一群丧尸,你打算怎样 0逃走 1躲进隔间 2不动\n";
    		int h ;
    		cin>>h;
    		if(h%3==0){
    			cout<<"你一跑出去,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int i;
    			cin>>i;
    			if(i%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(h%3==1){
    			cout<<"你一进隔间,又是丧尸,你被咬死了 现在你要诈尸吗 0要 1不\n";
    			int j;
    			cin>>j;
    			if(j%2==0){
    				cout<<"你诈尸后又被吃了,游戏失败\n"; 
    			}
    			else{
    				cout<<"游戏失败\n"; 
    			} 
    		}
    		if(h%3==2){
    			cout<<"你被丧尸吃了,游戏失败\n"; 
    		}
    	}
    }
    
    
    5.整死你(语言:c++98)
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a;
    	while(cin>>a){
    		cout<<"整死你游戏开始,答完下面的题的不是人\n";
    		cout<<"你是人吗 1:是 2:不是\n" ;
    	}
    }
    //注:开始游戏后需输入1 
    
    以上便是我做的低级小游戏,如要转发,请加个作者(熊楷睿),谢谢。
    
    
    二.关于一些词语的解释
    
    1.内耗:正在找屎吃
    
    
    2.焦虑:提前找屎吃
    
    
    3.执念:不是屎不吃
    
    
    4.后悔:找之前的屎吃
    
    
    5.抱怨:到处说吃了屎
    
    
    6.纠结:吃完屎还舔
    
    
    7.计较:别人碗里的屎更香
    
    
    8.烦恼:想吃屎却吃不了
    
    
    9.愤怒:要吃的屎被别人吃了
    
    
    10.成长:终于知道屎不能吃,要吃饭
    
    
    三.XKRZ语言代码(用法见附录)【1.2版】『注:1.2版正在更新』
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<"1 |#XKRZ[kaishi/begin]/\n";
    	cout<<"2 |YES[1.2]/\n";
    	cout<<"3 |long:";
    	int a;
    	cin>>a;
    	int n=a; 
        for (int i = 1; i <= n; i++){
            cout <<i<<" |"<<"number:";
            int b;
            cin>>b;
            cout<<i+1<<" |";
            char c;
            char cc;
            char ccc;
            char d;
            char e[b];
            char f;
            char g;
            char h;
            cin>>c>>cc>>ccc>>d>>e[b]>>f>>g>>h;
            if(c=='s' and cc=='a' and ccc=='y' and d=='<' and f=='!' and g=='>' and h=='/'){
            	cout<<e[b];
    		}
    		else if(c=='s' and cc=='a' and ccc=='y' and d=='<' and f==';' and g=='>' and h=='/'){
    			cout<<e[b]<<endl;
    		}
    		else{
    			cout<<"Runtime Error";
    		}
        }
    }
    
    附录:
    1.最开始的一串字母是头代码
    2.目前只支持输出数字或字母
    3.say[]/表示输出[]里的内容(;表示换行,若不换行,输入!)
    4.出现long后,输入行数
    5.出现number后,输入本行输出字母的个数
  • 通过的题目

  • 最近活动

  • 最近编写的题解

    This person is lazy and didn't write any solutions.

题目标签

普及-
23
模拟
20
语言入门
14
顺序结构
11
分支结构
10
字符串
9
计算几何
5
入门
5
搜索
5
枚举
5
循环结构
4
数组
4
其他
2
数学
2
二维数组
2
回文
2
for循环
1
一本通
1
运算
1