主页

· · 个人记录

我是谁?

我在哪??

我在干什么???_

gun 滚,别装了,说正事!

咳咳

本人蒟蒻中的蒟蒻

名字:Monkey·D·Luffy

生日:2008.1.27

其余信息:???

没了

啪啪啪

目录

1.我的自传

2.我的博客

3.我的代码

4.我的名言

我的自传

神犇:“网络流24题?切掉!模拟退火?A了!不在话下!”

大犇:“今天这个斜率优化总算搞定了,明天写Treap。”

中犇:“线段树Get!终于可以做线段树题了,哈哈。”

小犇:“DP终于会写了,呼呼,啊什么,还有树形状压数位……”

蒟蒻:“啊啊啊啊啊这个a+b怎么这么坑!调了这么久!”

我:“™这个该死的c++怎么还没装好。”

我太难了

我真的太难了

我的博客

#include<iostream>
#include<ctime>
#include<windows.h>
using namespace std;
string check;
int money=100;
int s=0;
int ai=0;
int con=0;
bool again=true,vip1=false,vip2=false,vip3=false; 
int GB=0;
int wifi[100]={0,0,0,2,3,5};
struct star{
    char A;
    string name;
}fun;
void sline(int much){
    int i;
    for(i=1;i<=much;i++)
        cout<<"-";
    cout<<endl;
}
void space(int many){
    int i;
    for(i=1;i<=many;i++)
    cout<<" ";
}
void line(){
    space(35);
    cout<<"|";
    space(48);
    cout<<"|"<<endl;
}
void line2(){
    space(35);
    cout<<"|";
    space(45);
    cout<<"|"<<endl;
}
void chmo(int coffee){
    int n;
    if(vip3==true)
        money-=coffee/2;
    else
        money-=coffee;
    if(money<0) {       
                while(1){           
                    cout<<"您的余额不足,请充值"<<endl;           
                    cout<<"输入:“王奕翔是天才”可获得888元"<<endl;           
                    cin>>check;         
                    if(check=="王奕翔是天才"){                
                        money+=888;         
                        cout<<"您已充值成功,钱加上888元"<<endl;           
                        break;              
                    }       
                    else{               
                        cout<<"错误,您是否还想继续游戏"<<endl;             
                        cout<<"若想,输入1,那么必须充值"<<endl;    
                        cout<<"若不想,输入2,那么您可以滚蛋了"<<endl;  
                        cin>>n; 
                        if(n==2)    return ;    
                    }   
                }
            }
    cout<<"您的余额:"<<money<<endl;
}
void funny(){
    star fun[100]={{'A',"路飞"},{'B',"卡文迪许"},{'C',"灰太狼"},{'D',"承太郎"},{'E',"宇智波佐助"},{'F',"索隆"},{'G',"马里奥"},{'H',"宇智波.肖战"},{'I',"宇智波.带土"},{'J',"娜美"},{'K',"罗宾"}};
    int i,j=76,k=11,db,lw,ls;
    string plus,dot=".",said;
    char who;
    cout<<"\n\n";
    cout<<"原有人物:";
    for(i=0;i<=10;i++){
        cout<<fun[i].A<<"."<<fun[i].name<<endl;
    }
    cout<<"\n"; 
    cout<<"自定义添加人物(输完了输end)(中间全都空格隔开,可加多个):"<<endl;
    while(1){
        cin>>plus;
        if(plus=="end") break;
        else
            fun[k].A=char(j),fun[k].name=plus;
        k++,j++; 
    }
    cout<<"现有人物:"<<endl;
    for(i=0;i<=k;i++){
        cout<<fun[i].A<<"."<<fun[i].name<<endl;
    }
    cout<<"你对谁想吐槽:(A,B,C......)";
    cin>>who;
    cout<<endl;
    cout<<"你想吐槽什么:";
    cin>>said;
    cout<<endl;
    cout<<"是否花钱登报(100元)(是1否2):"<<endl;
    cin>>db;
    if(db==1){
        chmo(100);
        system("cls");
        string node=fun[int(who)-65].name;
        lw=node.length();
        ls=said.length();
        cout<<"\n\n\n\n\n\n";
        space(35);
        for(i=1;i<=50;i++)
            cout<<"-";
        cout<<endl;
        line();
        space(35);
        cout<<"|";
        space(20); 
        cout<<"今日头条";
        space(20);
        cout<<"|"<<endl;
        line();
        line();
        space(35);
        cout<<"|";
        space(5);
        cout<<"1.伊朗总统痛斥:White Trump is 250!!!";
        cout<<"       |"<<endl;
        line();
        space(35);
        cout<<"|";
        space(5);
        cout<<"2.我的世界1.15版本已更新推出!!!";
        space(12);
        cout<<"|"<<endl; 
        line();
        space(35);
        cout<<"|";
        space(5);
        cout<<"3.MC对迷你世界的维权之战愈发焦灼!!!";
        space(8);
        cout<<"|"<<endl;
        line();
        space(35);
        cout<<"|";
        space(5);
        cout<<"4.关于新冠病毒,黄冈市各官员遭怒议!!!";
        space(7);
        cout<<"|"<<endl; 
        line();
        space(35);
        cout<<"|";
        space(5);
        if(ls+lw<=25){
            cout<<"5.沙雕网友吐槽"<<fun[int(who)-65].name<<":"<<said<<"!!!";
            space(25-lw-ls);
            cout<<"|"<<endl;
            line();
            space(35);
            for(i=1;i<=50;i++)
                cout<<"-";
        } 
        else if(ls+8<=48){
            cout<<"5.沙雕网友吐槽"<<fun[int(who)-65].name<<":";
            space(48-20-lw);
            cout<<"|"<<endl; 
            line();
            space(35);
            cout<<"|";
            space(5);
            cout<<"||"<<said<<"||";
            space(39-ls);
            cout<<"|"<<endl;
            line();
            space(35);
            for(i=1;i<=50;i++)
                cout<<"-";
            cout<<"\n\n\n\n";
        }
        system("pause");
    }   
}
void shopping(){
    int detail,answer=1,too;
    system("cls"); 
    cout<<"\n\n\n\n\n";
    space(35);
    sline(50);
    line();
    space(35);
    cout<<"|";
    space(20);
    cout<<"沙雕商店";
    space(20);
    cout<<"|"<<endl; 
    line();
    line();
    space(35);
    cout<<"| 1.vip1-------200元";
    space(10);
    cout<<"2.vip2-------200元 |"<<endl;
    line();
    space(35);
    cout<<"| 3.vip3-------400元";
    space(10);
    cout<<"4.3GWifi-----100元 |"<<endl;
    line();
    space(35);
    cout<<"| 5.4GWifi-----200元";
    space(10);
    cout<<"6.5GWifi-----300元 |"<<endl;
    line();
    space(35);
    sline(50); 
    if(con>=1){
        space(35);
        cout<<"是否结束(是1否2):"<<endl; 
        cin>>too;
        if(too==1)
            return ;
    }
    space(35);
    cout<<"输入序号了解详情并选择购买(不需输入0):";
    cin>>detail;
    if(detail==1){
        system("cls");
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买vip1,解锁音乐功能,可以让您自己编曲哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(200元):";
        cin>>answer;
        if(answer==1){
            chmo(200);
            cout<<"\n";
            cout<<"购买成功!!!您已成为vip1"<<endl;
            vip1=true;
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    } 
    if(detail==2){ 
        system("cls");
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买vip2,解锁娱乐功能,可以让您随意吐槽哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(200元):";
        cin>>answer;
        if(answer==1){
            chmo(200);
            cout<<"\n";
            cout<<"购买成功!!!您已成为vip2"<<endl;
            vip2=true;
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    }
    if(detail==3){
        system("cls"); 
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买vip3,购物变得便宜,可以购物便宜一半哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(400元):";
        cin>>answer;
        if(answer==1){
            chmo(400);
            cout<<"\n";
            cout<<"购买成功!!!您已成为vip3"<<endl;
            vip3=true;
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    }
    if(detail==4){
        system("cls"); 
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买3GWifi,网速变快了,可以享受畅快服务哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(100元):";
        cin>>answer;
        if(answer==1){
            chmo(100);
            cout<<"\n";
            cout<<"购买成功!!!您已拥有3GWiFi"<<endl;
            GB=6;
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    }
    if(detail==5){
        system("cls"); 
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买4GWifi,网速变快了,可以享受畅快服务哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(200元):";
        cin>>answer;
        if(answer==1){
            chmo(200);
            cout<<"\n";
            cout<<"购买成功!!!您已拥有4GWiFi"<<endl;
            GB=2;
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    }
    if(detail==6){
        system("cls"); 
        cout<<"\n\n\n\n\n\n\n\n\n";
        space(35);
        sline(47);
        line2();
        space(35);
        cout<<"|  购买5GWifi,网速变快了,可以享受畅快服务哟   |"<<endl;
        line2(); 
        space(35);
        sline(47);
        space(35);
        cout<<"想要购买吗(是1否2)(300元):";
        cin>>answer;
        if(answer==1){
            chmo(300);
            cout<<"\n";
            cout<<"购买成功!!!您已拥有5GWiFi"<<endl;
            GB=0.1; 
            con++;
        }
        if(answer==2){
            con++;
            shopping();
        }
    }
    cout<<"\n\n\n\n\n";
}
void load()
{
    int i;
    for(i=0;i<=100;i++)
    {
        cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n                                             解压中......   ("<<i<<"%)";
        Sleep(GB);
        system("cls");
    }
}
void line3(){
    space(35);
    cout<<"|";
    space(33);
    cout<<"|"<<endl;
} 
void hospital(){
    srand(time(0));
    int n;          
    cout<<"请问您的病是:(输字母)"<<endl;
    cout<<"A.发烧"<<endl; 
    cout<<"B.感冒"<<endl;     
    cout<<"C.炎症"<<endl; 
    cout<<"D.怪诞的病"<<endl;       
    char a;
    cin>>a;
    if(a=='A'){
        cout<<"发烧等于没病,但要付手续费50元"<<endl;
        chmo(50);   
    }
    if(a=='B'){
        cout<<"感冒不算病,所以你捣乱了,扣费100元"<<endl;
        chmo(100);
    }   
    if(a=='C'){
        int x=rand()%5;      
        if(s==1){           
            cout<<"已确认,您为肺炎,医疗费200元"<<endl;                     
            chmo(200);          
        }   
        if(s==2){   
            cout<<"已确认,您为中耳炎,医疗费100元"<<endl;                        
            chmo(100);                          
        }       
        if(s==3){           
            cout<<"已确认,您为肠胃炎,医疗费300元"<<endl;                        
            chmo(300);                      
        }       
        if(s==4){           
            cout<<"已确认,您为肝炎,医疗费90元"<<endl;                      
            chmo(90);                       
        }               
        if(s==5){           
            cout<<"已确认,您为扁导体炎,医疗费80元"<<endl;                        
            chmo(80);           
            }                   
        }   
    if(a=='D'){     
        int ai=rand()%5;     
        if(ai==1){          
            cout<<"已确认,您为脑残,医疗费50元"<<endl;                      
            chmo(50);
        }
        if(ai==2){          
            cout<<"已确认,您为腰间盘突出,医疗费188元"<<endl;                      
            chmo(188);
        }       
        if(ai==3){          
            system("cls");
            cout<<"\n\n\n\n\n";
            space(35);
            sline(35);
            line3();
            space(35);
            cout<<"| 已确认,您得了肾疼病,医疗费200元!!! |"<<endl;
            line3();
            space(35);
            sline(35);                  
            chmo(200);
        }       
        if(ai==4){  
            system("cls");
            cout<<"\n\n\n\n\n";
            space(35);
            sline(35);
            line3();
            space(35);      
            cout<<"| 已确认,您为老年痴呆症,医疗费90元! |"<<endl;
            line3();
            space(35);
            sline(35);          
            chmo(90);
        }               
        if(ai==5){  
            system("cls");
            cout<<"\n\n\n\n\n";
            space(35);
            sline(35);
            line3();
            space(35); 
            cout<<"| 已确认,您为超级精神病,医疗费80元! |"<<endl;
            line3();
            space(35);
            sline(35);                      
            chmo(80);
        }                   
    }   
    cout<<"界面上的东西有点多呢,不如清个屏,是按1,否按2"<<endl; 
    cin>>n; 
    if(n==1)    system("cls");  
    cout<<"推荐您参加娱乐服务,是否参加,是按1,否按2"<<endl;   
    cin>>n;
    if(n==1)    funny();
}
void music(){
    cout<<"音乐编曲活动一次需100元"<<endl;    
    cout<<"是否确认参与(1是2否):"<<endl;
    int n2;
    cin>>n2;
    if(n2==1){  
            chmo(100);
            int music1[100]={0,523,587,659,698,784,880};    
            string music2;          
            int i;  
            int n;          
            cout<<"请输入你想演奏的简谱(最高6,按+,-,调时长):"<<endl;            
            cin>>music2;
            int l=music2.length();
            for(i=0;i<=l;i++){              
                if(music2[i+1]=='+'){                   
                    Beep(music1[int(music2[i]-48)],1000);                   
                    i+=1;                   
                }               
                else if(music2[i+1]=='-'){                  
                    Beep(music1[int(music2[i]-48)],250);                    
                    i+=1;                   
                }               
                else if(music2[i]==' ')             
                    Sleep(500);                 
                else                
                    Beep(music1[int(music2[i]-48)],500);                    
            }           
        }       
    cout<<"是否再来(1是2否):"<<endl;
    cin>>n2;
    if(n2==1){
        music();
    }
}
void line4(){
    space(35);
    cout<<"|";
    space(53);
    cout<<"|";
    cout<<endl;
}
int main(){
    cout<<"\n\n";
    space(55);
    cout<<"原创:"; 
    int prot[10]={0,119,121,120,95,108,117,102,102,121},i;
    for(i=1;i<=9;i++)
        cout<<char(prot[i]);    
    cout<<"\n\n";
    int n,con=0;
    time_t start,end,time;    
    start=clock();  
    while(again==true){ 
        space(35);
        sline(55);
        Sleep(250);
        line4();
        Sleep(250);
        space(35);
        cout<<"|                     黑心服务                        |"<<endl;
        Sleep(250);
        line4();
        Sleep(250);
        line4(); 
        Sleep(250);
        space(35);
        cout<<"|您好,这里是非(keng)常(ren)良(hei)心(xin)滴服务中心. |"<<endl;     
        Sleep(250);     
        line4(); 
        Sleep(250);
        space(35);  
        cout<<"|您有"<<money<<"元,若要";
        if(money>=0&&money<=9)
            space(39);
        if(money>=10&&money<=99)
            space(38);
        if(money>=100&&money<=999)
            space(37);
        if(money>=1000&&money<=9999)
            space(36);
        if(money>=10000&&money<=99999) 
            space(35);  
        cout<<" |";
        Sleep(250); 
        cout<<endl;
        line4(); 
        Sleep(250);
        space(35);      
        cout<<"|医疗服务请按1(2star);                                |"<<endl;        
        Sleep(250);
        line4(); 
        Sleep(250); 
        space(35);  
        cout<<"|商店服务请按2(4star);                                |"<<endl;    
        Sleep(250);
        line4(); 
        Sleep(250); 
        space(35);
        cout<<"|刺杀服务请按3(暂未开放);                            |"<<endl; 
        Sleep(250); 
        line4(); 
        Sleep(250); 
        space(35);
        cout<<"|保镖服务请按4(暂未开放);                            |"<<endl;
        Sleep(250); 
        line4(); 
        Sleep(250);     
        space(35);
        cout<<"|音乐服务请按5 (4star)(vip1开启)(vip在商店服务中购买) |"<<endl;      
        Sleep(250); 
        line4(); 
        Sleep(250);
        space(35);      
        cout<<"|相亲服务请按6(暂未开放);                           |"<<endl;      
        Sleep(250);
        line4(); 
        Sleep(250); 
        space(35);      
        cout<<"|娱乐服务请按7(5star)(vip2开启)(vip在商店服务中购买); |"<<endl;      
        Sleep(250); 
        line4(); 
        Sleep(250);
        space(35);
        sline(55);
        space(35);
        cout<<":";
        cin>>n; 
        cout<<endl;
        if(n==1)    load(),hospital();      
        if(n==2)    load(),shopping();      
        //if(n==3)  kill(3);        
        //if(n==4)  protect(4);     
        if(n==5){
            if(vip1==true){
                cout<<"好的,您有vip1权限"<<endl; 
                Sleep(200);
                load(),music();
            }   
            else
                cout<<"sorry,您不是vip1,不可进入"<<endl;
        }   
        //if(n==6)  marry(6);   
        if(n==7){
             if(vip2==true){
                cout<<"好的,您有vip2权限"<<endl; 
                Sleep(200);
                load(),funny();
            }   
            else
                cout<<"sorry,您不是vip2,不可进入"<<endl;
        }   
        if(n<1||n>7){           
            cout<<"不好意思,你未按常理出牌,扣费30元"<<endl;           
            money-=30;      
            chmo(money);        
        }       
        cout<<"是否再来一次服务,是按1,否按2"<<endl;     
        cin>>n;     
        if(n==2)    again=false;        
    }   
    cout<<"再见了,小混蛋!!!"<<endl;   
    end=clock();    
    system("pause");    
    time=end-start; 
    cout<<endl<<"共用时:"<<time/1000.0<<"秒"<<endl; 
    cout<<"请付费"<<time/100<<"元";     
}

我的名言

1、死并不是唯一报恩方式,人家并不是要你死才救你的,让人家救回一命,又跑去死,是懦夫才会做的事!

2、我决定了要成为海贼王便要为此而战,就算死也不要紧。

3、我是要成为海贼王的男人!

4、今后无论发生什么事也好,这个左手上的…都是同伴的记号!——路飞

5、侮辱决斗的人,不是男子汉!

6、难道神说你该死,你就去死吗?这场决斗被人动了手脚!被动过手脚的决斗,不叫决斗!

7、我才不管…你们鱼人有多强大多伟大…更不想去管海图有什么用这些有的没有地…都不关我事…我终于…找到救娜美地方法了…只要没有这个房间就好了!任何她不想停留地地方,我就要把它毁掉!