常识小测试

本作品大家可用于亲友挑战:

#include<bits/stdc++.h>
using namespace std;
int main(){
	cout<<"此版本为正式版本,题目较多,请谨慎填写,感谢游玩"<<endl; 
	cout<<"请选择1或2"<<endl;
	int n;
	cin>>n;
	if(n!=2){
		cout<<"错";
		return 0; 
	}else{
		cout<<"请选择3或4"<<endl;
		int a;
		cin>>a;
		if(a!=3){
			cout<<"错";
		}else{
			cout<<"3+3+3+"<<endl;
			cout<<"3+3+3+"<<endl;
			cout<<"3+3+3=?"<<endl; 
			int b;
			cin>>b;
			if(b!=27){
				cout<<"错";
				return 0; 
			}else{
				cout<<"456345-345=?"<<endl;
				int c;
				cin>>c;
				if(c!=456000){
							cout<<"错";
							return 0;
						}else{
							cout<<"电脑是几进制?"<<endl;
							cout<<"请输入2或10或16"<<endl;
							int d;
							cin>>d;
							if(d!=2){
								cout<<"错";
								return 0;
							}else{
								cout<<"今年是什么年?"<<endl;
								cout<<"1.兔"<<endl;
								cout<<"2.虎"<<endl;
								cout<<"3.龙"<<endl;
								cout<<"请输入1或2或3"<<endl;
								int e;
								cin>>e;
								if(e!=3){
									cout<<"错";
									return 0; 
								}else{
									cout<<"A*A=4"<<endl;
									cout<<"A+B=6"<<endl;
									cout<<"B+C=7"<<endl;
									cout<<"A*C=?"<<endl;
									int f;
									cin>>f;
									if(f!=6){
										cout<<"错";
										return 0;
									}else{
										cout<<"2+2+2+"<<endl;
										cout<<"2+2+2+"<<endl;
										cout<<"2+2+2=?"<<endl;
										int g;
										cin>>g;
										if(g!=18){
											cout<<"错";
											return 0;
										}else{
											cout<<"10+10+10+"<<endl;
											cout<<"10+10+10+"<<endl;
											cout<<"10+10+10=?"<<endl;
											int h;
											cin>>h;
											if(h!=90){
												cout<<"错";
												return 0;
											}else{
												cout<<"36/4.5=?"<<endl;
												int i;
												cin>>i;
												if(i!=8){
													cout<<"错";
													return 0;
												}else{
													cout<<"是谁首次发现了万有引力?"<<endl;
													cout<<"1.爱因斯坦"<<endl;
													cout<<"2.牛顿"<<endl;
													cout<<"3.鲁迅"<<endl;
													cout<<"请输入1或2或3"<<endl;
													int j;
													cin>>j;
													if(j!=2){
														cout<<"错";
														return 0;
													}else{
														cout<<"李白是哪个朝代的?"<<endl;
														cout<<"1.东晋"<<endl;
														cout<<"2.宋代"<<endl;
														cout<<"3.现代"<<endl;
														cout<<"4.唐代"<<endl;
														cout<<"请输入1或2或3或4"<<endl;
														int k;
														cin>>k;
														if(k!=4){
															cout<<"错";
															return 0;
														}else{
															cout<<"李白被称为 什么?"<<endl;
															cout<<"1.诗仙"<<endl;
															cout<<"2.诗圣"<<endl;
															cout<<"请输入1或2"<<endl;
															int l;
															cin>>l;
															if(l!=1){
																cout<<"错";
																return 0;
															}else{
																cout<<"野草是谁写的?"<<endl;
																cout<<"1.鲁迅"<<endl;
																cout<<"2.苏轼"<<endl;
																cout<<"3.曹操"<<endl;
																cout<<"请输入1或2或3"<<endl;
																int m;
																cin>>m;
																if(m!=1){
																	cout<<"错";
																	return  0;
																}else{
																	cout<<"朝辞白帝彩云间,这句诗出自哪位诗人?"<<endl;
																	cout<<"1.苏轼"<<endl;
																	cout<<"2.李白"<<endl;
																	cout<<"3.朱熹"<<endl;
																	cout<<"请输入1或2或3"<<endl;
																	int o;
																	cin>>o;
																	if(o!=2){
																		cout<<"错";
																		return 0;
																	}else{
																		cout<<"鲁迅原名是?"<<endl;
																		cout<<"1.鲁迅"<<endl;
																		cout<<"2.周树人"<<endl;
																		cout<<"3.苏轼"<<endl;
																		cout<<"请输入1或2或3"<<endl;
																		int p;
																		cin>>p;
																		if(p!=2){
																			cout<<"错";
																			return 0;
																		}else{
																			cout<<"90+90+90+"<<endl;
																			cout<<"90+90+90+"<<endl;
																			cout<<"100+100+100+"<<endl;
																			cout<<"200+200+200=?"<<endl;
																			int q;
																			cin>>q;
																			if(q!=1440){
																				cout<<"错";
																				return 0;
																			}else{
																				cout<<"新中国成立时间是?"<<endl;
																				cout<<"1.1981年10月1日"<<endl;
																				cout<<"2.1949年10月1日"<<endl;
																				cout<<"3.1945年8月15日"<<endl;
																				cout<<"请输入1或2或3"<<endl;
																				int r;
																				cin>>r;
																				if(r!=2){
																					if(r==1){
																						cout<<"错";
																						return 0;
																					}else{																				}
																						if(r==3){
																							cout<<"这是日本投降日期!";
																							return 0;
																						}
																				}else{
																					cout<<"40%化成小数是?"<<endl;
																					cout<<"1. 0.04"<<endl;
																					cout<<"2. 0.4"<<endl;
																					cout<<"3. 4"<<endl;
																					cout<<"请输入1或2或3"<<endl;
																					int s;
																					cin>>s;
																					if(s!=2){
																						cout<<"错";
																						return 0;
																					}else{
																						cout<<"20000万是几亿?"<<endl;
																						cout<<"1. 0.2亿"<<endl;
																						cout<<"2. 2亿"<<endl;
																						cout<<"3. 0.02亿"<<endl;
																						cout<<"请输入1或2或3"<<endl;
																						int t;
																						cin>>t;
																						if(t!=2){
																							cout<<"错";
																							return 0;
																						}else{
																							cout<<"A+A+A=15"<<endl;
																							cout<<"B+B=10000"<<endl;
																							cout<<"A*B=?"<<endl; 
																							int u;
																							cin>>u;
																							if(u!=25000){
																								cout<<"错";
																								return 0;
																							}else{
																								cout<<"明天是周5,昨天是周几?"<<endl;
																								cout<<"请输入1或2或3或4或5"<<endl;
																								int v;
																								cin>>v;
																								if(v!=3){
																									cout<<"错";
																									return 0;
																								}else{
																									cout<<"冰心奶奶活了多少岁?"<<endl;
																									int w;
																									cin>>w;
																									if(w!=99){
																										cout<<"错";
																										return 0;
																									}else{
																										cout<<"巴金爷爷活了多少岁?"<<endl;
																										int x;
																										cin>>x;
																										if(x!=101){
																											cout<<"错";
																											return 0;
																										}else{
																											cout<<"日本投降时间是?"<<endl;
																											cout<<"1.1945年8月15日"<<endl;
																											cout<<"2.1982年8月15日"<<endl;
																											cout<<"3.1975年8月15日"<<endl;
																											cout<<"请输入1或2或3"<<endl;
																											int a1;
																											cin>>a1;
																											if(a1!=1){
																												cout<<"错";
																												return 0; 
																											}else{
																											cout<<"是否提交?"<<endl;
																											cout<<"提交按1"<<endl;
																											cout<<"取消按2"<<endl;
																											int z;
																											cin>>z;
																											if(z!=1){
																												cout<<"答题结束";
																												return 0;
																											}else{
																												cout<<"确定吗?"<<endl;
																												cout<<"确定按1"<<endl;
																												cout<<"不确定按2"<<endl;
																												int b1;
																												cin>>b1;
																												if(b1!=2){
																													cout<<"确定?"<<endl; 
																													cout<<"是否提交?"<<endl;
																													cout<<"提交按1"<<endl;
																													cout<<"取消按2"<<endl;
																													int c1;
																													cin>>c1;
																													if(c1!=1){
																														cout<<"答题结束";
																														return 0;
																													}else{
																														cout<<"恭喜通关!";
																														return 0;
																													}
																												} else{
																													cout<<"答题结束";
																													return 0;
																												} 
																											} 
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																		
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
					} 	
				}
			}
	}
	return 0; 
}

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值