用户名:OIer
密码:AKIOI
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
string a,b;
int s=1000;
void llccf(){
cout<<"起初,没有人注意这场灾难。"<<endl;
cout<<"这不过是一次作弊,一场比赛的无效,一种算法的毁灭,一个机构的破产。"<<endl;
cout<<"直到这场灾难和每个OIer息息相关。"<<endl;
Sleep(2000);
system("cls");
cout<<" 流浪CCF"<<endl<<endl;
cout<<"导演:庄谨熠 编剧:沈呓宸"<<endl;
cout<<"主演:周亦辰 许腾元 熊家诚"<<endl;
cout<<"特别出演:秦朗"<<endl;
Sleep(2500);
system("cls");
cout<<" 编码王电影制片厂"<<endl;
cout<<" ##########"<<endl;
cout<<" # ## #"<<endl;
cout<<" # ## # #"<<endl;
cout<<" ################"<<endl;
cout<<" # ## # #"<<endl;
cout<<" # # # #"<<endl;
cout<<" ##########"<<endl;
Sleep(2000);
system("cls");
cout<<"你的知识很肤浅,"<<endl;
cout<<"会零蛋,会被骂"<<endl;
cout<<"会被打,还会忘"<<endl;
cout<<"但是,作弊的你,理论上,可以AK。"<<endl;
cout<<"这是一项延续C++语言的技术,"<<endl;
cout<<"为什么要被禁止?为什么?!"<<endl;
cout<<"哈哈哈哈哈哈哈哈!"<<endl<<endl;
Sleep(1000);
cout<<"CCF正在极速贪污,持续腐败。"<<endl;
cout<<"一百年后,CCF将腐败到崩溃整个C++界。"<<endl;
cout<<"三百年后,C++语言将不复存在。"<<endl;
cout<<"因此,OIer表现出前所未有的团结。成立了拯救C++委员会。"<<endl;
cout<<"决定在CCF大厦表面建立一万座大厦发动机,"<<endl;
cout<<"把CCF大厦推出太阳系,到4.2光年外的新世界。"<<endl;
cout<<"整个过程将耗时两千五百年。"<<endl<<endl;
Sleep(2000);
cout<<"“我跟你说啊,你是没赶上好时候。”" << endl;
cout<<"“在这之前,NOIP老好啦,全是作弊的,人称‘作弊NOIP’。”"<<endl;
cout<<"“炸监考老师饼,这么老厚,五十万个监考老师一只饼。”"<<endl;
cout<<"“现在连CSP都作弊不上了!”"<<endl;
Sleep(7500);
}
void xdmby(){
cout<<"随机生成代码中......";
Sleep(2000);
system("cls");
cout<<"---------------- 表演即将开始!----------------";
Sleep(2000);
system("cls");
cout<<"#include<bits/stdc++.h>"<<endl;
Sleep(1000);
cout<<"using namespace std;"<<endl;
Sleep(1000);
cout<<"int main(){"<<endl;
Sleep(1000);
cout<<" int a,b;"<<endl;
Sleep(1000);
cout<<" cin>>a>>b;"<<endl;
Sleep(1000);
cout<<" cout<<a+b;"<<endl;
Sleep(1000);
cout<<" return 0;"<<endl;
Sleep(1000);
cout<<"}";
Sleep(1000);
}
void sxsj(){
string n;
long long d,f=100;
cout<<"姓名:";
cin>>n;
cout<<"班级:";
cin>>n;
cout<<"1."<<endl;
cout<<"1+1=";
cin>>d;
if(d==2){
Sleep(2000);
cout<<"很遗憾,答案正确!"<<endl;
Sleep(2000);
}
else{
Sleep(2000);
f-=25;
cout<<"恭喜你,答案错误!"<<endl;
cout<<-25<<endl;
Sleep(2000);
}
cout<<endl<<"2."<<endl;
cout<<"1+2+3+......+98+99+100=";
cin>>d;
if(d==5050){
Sleep(2000);
cout<<"很遗憾,答案正确!"<<endl;
Sleep(2000);
}
else{
Sleep(2000);
f-=25;
cout<<"恭喜你,答案错误!"<<endl;
cout<<-25<<endl;
Sleep(2000);
}
cout<<endl<<"3."<<endl;
cout<<"99*99*99*99*99=";
cin>>d;
if(d==9509900499){
Sleep(2000);
cout<<"很遗憾,答案正确!"<<endl;
Sleep(2000);
}
else{
Sleep(2000);
f-=25;
cout<<"恭喜你,答案错误!"<<endl;
cout<<-25<<endl;
Sleep(2000);
}
cout<<endl<<"4."<<endl;
cout<<"一个正三角形的边长为8,则面积为:";
cin>>d;
if(d==8){
Sleep(2000);
cout<<"很遗憾,答案正确!"<<endl;
Sleep(2000);
}
else{
Sleep(2000);
f-=25;
cout<<"恭喜你,答案错误!"<<endl;
cout<<-25<<endl;
Sleep(2000);
}
cout<<endl<<"最终得分:"<<f<<"分,恭喜你!";
Sleep(2000);
}
void nxtz(){
int a=1,s=0;
bool j=0;
while(1){
if(a==11){
printf("加油!\n");
}
else if(a==101){
printf("努力!\n");
}
else if(a==201){
printf("不错嘛!\n");
}
else if(a==301){
printf("坚持到这里已经很不错了!\n");
}
else if(a==401){
printf("我预计已经没人能坚持到这里了!\n");
}
else if(a==501){
printf("要不要开启极速模式?开选1,不开选0。\n");
cin>>j;
}
else if(a==601){
printf("不是吧?你竟然能坚持到这里?\n");
}
else if(a==801){
printf("你距离成功仅剩200秒!\n");
}
else if(a==1001){
printf("恭喜!你成功了!你是我见过最有耐心的人!");
return;
}
printf("%d ",a++);
s++;
if(s==10){
printf("\n");
s=0;
}
if(j==0)Sleep(1000);
else Sleep(100);
}
}
int main(){
int c;
for(int i=1;i<=13;i++){
cout<<endl;
}
for(int i=1;i<=48;i++){
cout<<" ";
}
cout<<"欢迎来到C++世界";
for(int i=1;i<=20;i++){
system("color 40");
Sleep(5);
system("color 10");
Sleep(5);
system("color 20");
Sleep(5);
system("color 30");
Sleep(5);
}
system("cls");
cout<<" 请注册"<<endl;
cout<<"用户名:";
cin>>a;
cout<<"密码:";
cin>>b;
if(a!="OIer"||b!="AKIOI"){
cout<<"用户名或密码错误!";
Sleep(1000);
return 0;
}
system("cls");
cout<<"金币:0"<<endl;
cout<<"开局赠送1000金币"<<endl;
cout<<"金币:1000"<<endl;
Sleep(2000);
system("cls");
while(1){
system("cls");
cout<<"观看电影大片《流浪CCF》 花费100金币:输入1"<<endl;
cout<<"观看写代码表演 花费200金币:输入2"<<endl;
cout<<"做数学试卷 花费500金币:输入3"<<endl;
cout<<"耐心挑战 花费1000金币:输入4"<<endl;
cin>>c;
system("cls");
switch(c){
case 1:s-=100;llccf();break;
case 2:s-=200;xdmby();break;
case 3:s-=500;sxsj();break;
case 4:s-=1000;nxtz();break;
}
system("cls");
if(s<0){
cout<<"金币不够!";
Sleep(2000);
return 0;
}
else{
cout<<"当前金币:"<<s;
Sleep(1000);
}
}
return 0;
}