• 个人简介

    1. 一段幽默的文字,让烦恼全都消失

    各科老师被困在电梯里的反应 语文老师正在写遗书。 数学老师开始计算电梯的长宽高。 英语老师开始说起电梯英语单词。 物理老师在计算说几小时空气会呼吸完。 化学老师在检查这个电梯的材质 音乐老师还在唱葬歌, 美木老师在画自己的遗像 生物老师在考虑他们需要的物质比如氧气。 地理老师在计算纬度叫人来救她们。 历史老师开始感慨。 政治老师准备告物业。 体育老师默默无闻走向电梯门口踹了一脚,门开了

    子曰:打架用砖乎! 不宜乱乎,照脸乎,使劲乎, 乎不着,再乎,右手乎完左手乎, 板砖乎断用鞋乎, 岂可一人独乎,有朋一齐乎,不亦乐乎, 乎着,往死里乎,呼不死,还乎, 乎死者,英雄也, 乎不死,拉倒也, 你明乎,不明乎? 明乎则已,不明乎拿砖照已脸乎! 一乎则明。

    北冥有狗,其名为哈。 外形冷峻,内心傻瓜。 三更半夜,呜呜啊啊。 主人不在,专门拆家。 床单沙发,稀里哗啦; 钢铁横梁,犹如泥巴! 哈之大,一锅炖不下。 化哈为犬,其名为奇。 奇之大,需要两个烧烤架。 一哈顶三虎, 三哈沉航母, 五哈斗上帝, 十哈创世纪, 百哈毁灭银河系, 千哈宇宙称第一。

    躺赢.老美:老日呢?色去了。。。 小男孩:叫你色!!!....... 呃呃呃老中呢?高考了。 老日。。。。 不是给你打跑了吗。 200* 2022 老中呢? 高考了 Oh my ************(口吐芬芳) This is my dog,japan. 汪汪汪! 俄:。。。。。。。。。。。 japan is die(趋势:去世).

    上课不听 笔记不做 老师一吼 鸡飞狗跳 ASCII码 常量变量 赋值语言 if语句 for循环 框架输入 输的代码 运行到炸 市二宫站 到体育西 挤地铁 挤电梯 人出来了 魂还没有 天啊!!!

    语文老师一回头,此地空杀黄鹤楼。 数学老师一回头,二次函数对称轴。 英语老师一回头,sorry加上三克油。 化学老师一回头,二氧化碳变汽油。 物理老师一回头,阿基米德要跳楼。 生物老师一回头,试管婴儿水里游。 体育老师一回头,乔丹改打乒乓球。 政治老师一回头,全班同学都梦游。 历史老师一回头,秦始皇来打酱油。 音乐老师一回头,打着节拍摇着 头。 美术老师一回头,蒙娜丽莎也风流。 地理老师一回头,校门前面泥石流。 全体老师一回头,全体学生没自由。

    嗨嗨嗨,今天我MC再来挑战一把打迷你啊, 奥利给,杀啊兄弟们!!! 此生不悔入MC,来世还做方块人!!!

    我承认我确实搞不定你,所以我要去搞定山河啦。 打架这玩意,不就是为了守护什么东西吗? 憧憬是距离理解最遥远的感情。 某些人喜好名利是“好大喜功”,某些人喜好名利是“人之常情”。 你的死亡让我的掉败更加沉重! 猫是可爱的,狼是很帅的。就是说,孤独又可爱又帅。 醒时空为梦一场,事事俱忘,何处是吾乡。 何人知我霜雪催,何人与我共一醉。 若能避开猛烈的欢喜,自然不会有悲痛来袭。 曾经沧海难为水,除却巫山不是云。 亲爱的,你不是救世主。 失去故土的花朵,回不去,却也离不开。 能不能停下来,看看那个满眼泪花奔向你的我。 人生当苦无妨,良人当归极好。 所谓无底深渊,下去,也是前程万里。 我能唱歌,因为我并不孤单! 她太年轻了,殊不知命运馈赠的礼物已在暗地里标明了价格。 我相貌堂堂,妻子花容月貌,岂会生出你这种山野莽夫呢? 十年前的你,喜欢过我吗? 当你准备好的时候,死神就追不上你。 站在蝼蚁的角度涉观无限大宇宙,是已知宇宙最大的嗔妄。 女人的心,木卫三的天。 命由己造,相由心生。 旅程总有一天会迎来终点,不必匆忙。 比起有一百个朋友,不如有个比一百人还要重要的真心朋友。 假作真时真亦假,无为有处有还无。 从来如此,便对么? 伊甸园的存在,是为证明世界的罪恶。 断剑重铸之日,骑士归来之时。 一定没有问题的! 我想要握紧的并不是匕首或是什么,只不过是他的掌心而已。 灰尽暗夜燎前线,烟起迷雾挂蓝巾。 世界上最美丽的就是世界本身。 像平常的你一样引发奇迹吧- 在你最冷的时候,有人不顾自己寒冷抱着你,这就是幸福。 雾里浓云处,寻前路。 自与你相识起,我便觉得你与众不同。 他有一双好眼睛,就是他将我从黑暗的迷途中带了回来。 真正的恐怖,存在于约定俗成的恐怖之外。 三个人沐浴在生命的暴雨之中,感受着地球生命的尊严。 现在我这个遗患,已经成为把真学们极欲拔掉的夫来比道中钉。 人总是贪婪的,就像最开始,我也只是想知道你的名字。 我们在年少时并不知道,有些乐章一旦开始,唱的就是曲终人散。 我们在年少时并不知道,有些乐章一旦开始,唱的就是曲终人散。 喜欢 不过是我愿意在冬天把自己当做你的暖水袋而已 如此便是 当世界背叛你的那天到来时,我会为你背叛全世界。 你喜欢一个人,看到所有跟他有关的东西,都会变成一团毛球。 我们擦身而过,是为了相识或者遗忘。 日月同辉时,诸神的黄昏。 我等你十三载,你如何回我? Cannot get hitokoto.

    中华是世界上唯一不能惹的国家!原因是:米国基地组织曾派出培养了近10年的八名恐怖王牌精英分子袭击中国。结果……第一个炸北京立交桥时,在立交桥上转晕了;第二个在上海炸公交时,硬是没挤上车;第三个在陕西炸超市时,遥控器被偷了;第四个在重庆炸大楼时被保安狂揍;第五个在山西成功炸矿,死伤过百,潜回基地,半年愣没见任何新闻报道,被基地以“欺骗组织罪”处决;第六个炸广州,结果刚出火车站,炸弹包就被飞车党抢走,半天没缓过神;第七个去辽宁炸铁岭,刚去就被忽悠瘸了;第八个去了河南,结果碰上了人贩子,至今杳无音讯。最后某登受不了了,决定在中国从小培养恐怖份子,没想到刚出生不久就让中式教育给整死了。

    有个简单的问题 什么是爱情 它是否是一种味道 还是引力 从我初恋那天起 先是甜蜜 然后紧接就会有 风雨 爱就像蓝天白云晴空万里 突然暴风雨 无处躲避 总是让人 始料不及 人就像 患重感冒 打着喷嚏 发烧要休息 冷热交替 欢喜犹豫 乐此不疲 叫人头晕的问题 什么叫爱情 它是那么的真实 又很可疑 研究过许多誓言 海枯石烂 发觉越想要解释 越乱 (女)所以说 永远多长 永远短暂 永远很遗憾 每个人有 每个人不同的体验 (合)那滋味 时而在飞 时而下坠 时而又落泪 动人电影 自己体会 别嫌票太贵 (男)比如美酒和咖啡 都是水 (女) 可一个让你醒 一个让你醉 (合)那么感情 能否以此类推 有的很平淡 有的撕心裂肺 所以说 永远多长 永远短暂 永远很缓慢 每个人有 每个人不同的计算 神秘的 诺言誓言 甚至谎言 自己去领悟 也许多年 也许瞬间 你自有答案 所以说 永远多长 永远短暂 永远很缓慢 每个人有 每个人不同的计算 神秘的 诺言誓言 甚至谎言 自己去领悟 也许多年 也许瞬间 你自有答案

    明月别枝惊鹊,清风半夜鸣蝉。OLE里说丰年,听取WA声一片。 七八个TLE,两三点MLE。旧时RE社林边,路转CE忽见。 —————————————————————————下一段————————————————————————

    西江月·证明

    即得易见平凡,仿照上例显然。留作习题答案略,读者自证不难。

    反之亦然同理,推论自然成立,略去过程QED,由上可知证毕。

    —————————————————————————下一段————————————————————————

    北冥有鱼,其名为鲲,鲲之大,long long double 装不下;化而为鸟,其名为鹏,鹏之大,高精数组都爆炸。

    —-————————————————————————下一段————————————————————————

    魔鬼:我可以实现你三个愿望,然后我就杀了你

    程序员:请实现我第二个愿望

    程序员:请实现我第一个愿望

    魔鬼.exe 已停止运行

    —————————————————————————下一段————————————————————————

    初墨,多么优雅的名字——可惜他姓熊

    拔杰,多么高端的名字——可惜他姓朱

    渔歌,多么诗意的名字——可惜他姓章

    巅峰,多么上进的名字——可惜他姓杨

    紫藤,多么大气的名字——可惜他姓杜

    晶斌,多么文静的名字——可惜他姓沈

    泥马,多么深奥的名字——可惜他姓曹

    珍香,多么秀丽的名字——可惜他姓史

    达野,多么磅礴的名字——可惜他姓尼

    仁范,多么仁慈的名字——可惜他姓沙

    塞克,多么科技的名字——可惜他姓马

    思,多么文静的名字——可惜他姓刁

    —————————————————————————下一段————————————————————————

    语文老师一回头, 鲁迅甘为孺子牛;

    数学老师一回头, 六元六次都能求;

    英语老师一回头, Sorry加上三克油;

    物理老师一回头, 一根杠杆撬地球;

    化学老师一回头, 二氧化碳变汽油;

    劳动老师一回头, 破铜烂铁来走秀;

    体育老师一回头, 黛玉也能踢足球;

    政治老师一回头, 全班同学都梦游;

    美术老师一回头, 蒙娜丽莎也风流;

    音乐老师一回头, 贝多芬呀也不牛;

    信息老师一回头, 带着学生玩网游; ———————————————————————————————

    老师:xx你这学期的诗都背完了没

    xx:是的

    老师:那我得好好考考你

    xx:okok

    老师:山穷水复疑无路

    xx:方天画戟捅义父

    老师:垂死病中惊坐起

    xx:吃席麻烦先随礼

    老师:但使龙城飞将在

    xx:Come on baby don't be shy.

    老师:巴山楚水凄凉地

    xx:蜜雪冰城甜蜜蜜

    老师:问君能有几多愁

    xx:累了困了喝红牛

    老师:大风起兮云飞扬

    xx:意大利炮轰他娘

    老师:清明时节雨纷纷

    xx:唱跳rap蔡徐坤

    老师:远赴人间惊鸿宴

    xx:大声点我听不见

    老师:少小离家老大回

    xx:菊花变成向日葵

    老师:后宫佳丽三千人

    xx:铁杵也能磨成针

    老师:老骥伏枥,志在千里

    xx:横扫饥饿,做回自己


    开学了,同学们要注意自己的遗容遗表(仪容仪表),在学校记得穿孝服(校服),不得穿着过于冥显(明显)的奇装异服,下课拿自己的水碑(水杯)接水,跑操注意跟上阴乐(音乐),下午的阎(眼)保健操已经纳入检查范围,上课灵声(铃声)响了要安静下来,同学们之间要合墓(和睦)相处,在孝(校)期间不要躺平,争作仙疯(先锋)。

    1. 1. mc代码
    2. 1. //#include"Inf-2D.h"
          #include<bits/stdc++.h>
          #include<windows.h>
          #include<conio.h>
          #define DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
          #define FN 0
          #define None 0
          #define Black 0
          #define Blue 1
          #define Green 2
          #define Grean 3
          #define Red 4
          #define Pink 5
          #define Yellow 6
          #define Grey 8
          #define grey 7
          #define blue 9
          #define green 10
          #define graan 11
          #define red 12
          #define pink 13
          #define yellow 14
          #define white 15
          #define bk0 240
          #define bk1 112
          #define bk2 128
          #define bk3 0
          #define DayLong 2000
          /*
          World Type:1.超平坦 2.普通
          生成:钻石(2-x/10[0-10层])% 铁(10-|x/10-4[40层]|)% 泥土(100-|x-表|^3)% 金(4-x/25[0-24层])% 煤(20-|x/5-15|[45层])%
          */
          using namespace std;
          int Attack=0,Rape=0,YLY=0;
          string BODY[16]={"","()","xx","/\\"};
          /*                      0                               1                                                 2                                                    3                                       4                                                                   5       */
          /*0空气 1基岩2泥土3草方块4木头5石头6沙子7玻璃8铁矿9金矿0钻石1煤炭2木板3木棍4火把5 树叶6工作7箱子8木稿9石镐0铁锭1金锭2铁镐3金镐4钻镐5熔炉6木剑7石剑8铁剑9金剑0钻剑1苹果2面包3床4地狱岩5地狱砖6刷怪笼7-2水     3-6岩浆 7黑曜石                                        8桶9水桶0岩浆桶1烈焰棒 2传送门*/
          string BLOCK[128]={"  ","▓ ","▓ ","MM","■","■","※","□","〓","〓","◆","〓","〓","| ","i ","▓ ","##","[]","/\\","/\\","◆","◆","/\\","/\\","/\\","##","||","||","||","||","||","●","--","#]","■","▓ ","##","█ ","▇ ","▆ ","▅ ","▃ ","█ ","█ ","▆ ","▃ ","█ ","■","U/","U#","U#","--","◆"};
          int BLOCK_COL[128]={Black,Black,Yellow,Green,Yellow,Grey,Yellow,blue,grey,yellow,blue,Grey,Yellow,Yellow,Red,Green,Yellow,Yellow,Yellow,Grey,grey,yellow,grey,yellow,blue,Grey,Yellow,Grey,grey,yellow,blue,Red,Yellow,Red,Pink,Pink,Black,Blue,Blue,Blue,Blue,Blue,Blue,Red,Red,Red,Red,Black,Black,Blue,Red,Red,Red};
          int Hard[128]={None,60000,100,0,200,500,100,0,500,500,700,400,200,0,10,30,200,200,0,0,0,0,0,0,0,500,0,0,0};
          int Hardmu[128]={None,60000,100,0,200,200,100,0,500,500,700,220,200,0,10,30,200,200,0,0,0,0,0,0,0,200,0,0,0};
          int Hardsh[128]={None,60000,100,0,200,100,100,0,150,140,700,120,200,0,10,30,200,200,0,0,0,0,0,0,0,100,0,0,0};
          int Hardti[128]={None,60000,100,0,200,70,100,0,70,70,70,60,200,0,10,30,200,200,0,0,0,0,0,0,0,70,0,0,0};
          int Hardji[128]={None,60000,100,0,200,30,100,0,30,30,40,20,200,0,10,30,200,200,0,0,0,0,0,0,0,30,0,0,0};
          int Hardzu[128]={None,60000,100,0,200,60,100,0,60,60,60,60,200,0,10,30,200,200,0,0,0,0,0,0,0,60,0,0,0};
          int CANPUT[128]={0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
          string NODE[16][2]={{"xx","/\\"},{"[]","/\\"},{"[]","^^"}};
          int NODE_COL[16]={Green,Green,Red};
          struct GUI
          {
          int heal,node,x,y,Delete;
          }wor[70];
          /* 背包:4*9 */
          struct BAG
          {
          int thing,num,nj;
          }bag[7][16];
          int Health,Eat,Time;
          int UPDOWN_SPEED=0,now=1;
          void setcolor(int bkcol,int col){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),bkcol+col);}
          int x,y,move,DIE;
          double Rx,Ry;
          int block[259][1028];
          BAG box[259][1028][16];
          int bk=bk0,op,Dpx[1028]={200};
          int Hc[64][10]={{0,12,12,12,12,16},{0,4,0,0,0,12},{0,0,4,0,0,12},{0,0,0,4,0,12},{0,0,0,0,4,12},{0,12,0,0,0,13},{0,0,12,0,0,13},{0,0,0,12,0,13},{0,0,0,0,12,13},{0,11,0,13,0,14},{0,0,11,0,13,14}};
          int Hc2[64][32]={{0,20,0,20,0,20,0,0,0,0,48},{0,12,12,0,12,12,0,0,0,0,16},{0,4,0,0,0,0,0,0,0,0,12},{0,12,0,0,0,0,0,0,0,0,13},{0,11,0,0,0,13,0,0,0,0,14},{0,5,5,5,5,0,5,5,5,5,25},{0,12,12,12,0,13,0,0,13,0,18},{0,5,5,5,0,13,0,0,13,0,19},{0,20,20,20,0,13,0,0,13,0,22},{0,21,21,21,0,13,0,0,13,0,23},{0,10,10,10,0,13,0,0,13,0,24},{0,0,12,0,0,12,0,0,13,0,26},{0,0,5,0,0,5,0,0,13,0,27},{0,0,21,0,0,21,0,0,13,0,28},{0,0,22,0,0,22,0,0,13,0,29},{0,0,10,0,0,10,0,0,13,0,30}};
          int CanHc()
          {
          for(int i=0;i<64;i++)
          if(bag[5][1].thing==Hc[i][1]&&bag[5][2].thing==Hc[i][2]&&bag[5][3].thing==Hc[i][3]&&bag[5][4].thing==Hc[i][4])return Hc[i][5];
          }
          int CanHc2()
          {
          for(int i=0;i<64;i++)
          {
          int bo=1;
          for(int j=1;j<=9;j++)if(bag[6][j].thing!=Hc2[i][j])bo=0;
          if(bo)return Hc2[i][10];
          }
          }
          void GOTO(int x,int y){
          CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
          HANDLE hConsoleOut;
          hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
          GetConsoleScreenBufferInfo(hConsoleOut,&csbiInfo);
          csbiInfo.dwCursorPosition.Y = x;
          csbiInfo.dwCursorPosition.X = y;
          SetConsoleCursorPosition(hConsoleOut,csbiInfo.dwCursorPosition);
          }
          void HideCursor()
          {
          HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
          CONSOLE_CURSOR_INFO CursorInfo;
          GetConsoleCursorInfo(handle, &CursorInfo);
          CursorInfo.bVisible = false;
          SetConsoleCursorInfo(handle, &CursorInfo);
          }
          int toint(string str)
          {
          int x=0;
          for(int i=0;i<str.size();i++)
          if(str[i]>='0'&&str[i]<='9')
          x=x*10+str[i]-'0';
          return x;
          }int ATTACK[128];
          void ShowCursor()
          {
          HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
          CONSOLE_CURSOR_INFO CursorInfo;
          GetConsoleCursorInfo(handle, &CursorInfo);
          CursorInfo.bVisible = 1;
          SetConsoleCursorInfo(handle, &CursorInfo);
          }
          void CreateWorld(int WorldType)
          {
          HideCursor();
          Health=10;Eat=10;for(int i=1;i<=64;i++)wor[i].Delete=1;
          if(WorldType==1)
          {
          x=4;
          y=512;op=2;
          for(int i=1;i<=1024;i++)block[0][i]=1,block[1][i]=2,block[2][i]=2,block[3][i]=3;
          }
          else if(WorldType==2)
          {
          //1:丘陵 2:山地Upper 3:山地Downner 4:平原 5:树林
          int Type=1,lenth=0,village=0;
          for(int j=1;j<=900;j++)
          {
          if(Type==1)Dpx[j]=Dpx[j-1]+rand()%3-1;
          else if(Type==2) Dpx[j]=Dpx[j-1]+rand()%2+1;
          else if(Type==3) Dpx[j]=Dpx[j-1]-rand()%2-1;
          else if(Type==4||Type==5) Dpx[j]=Dpx[j-1]+((rand()%3!=0)?(rand()%3-1):0);
          if(Dpx[j]>=100)Dpx[j]=64;
          else if(Dpx[j]<=30)Dpx[j]=64;
          lenth++;
          if(lenth>=5&&rand()%20==0)
          {
          if(Type==2)Type++;
          else
          {
          Type=rand()%5+1;
          while(Type==3)Type=rand()%5+1;
          }
          }
          for(int i=Dpx[j];i>=1;i--)
          if(i==Dpx[j]) block[i][j]=3;
          else if(rand()%1000<2-i/10)
          {
          block[i][j]=10;
          for(int ii=-1;ii<=1;ii++)
          for(int jj=-1;jj<=1;jj++)
          if(rand()%10<=3&&(ii!=0||jj!=0))block[i+ii][j+jj]=10;
          }
          else if(rand()%1000<10-abs(i/10-4))
          {
          block[i][j]=8;
          for(int ii=-1;ii<=1;ii++)
          for(int jj=-1;jj<=1;jj++)
          if(rand()%5<=4&&(ii!=0||jj!=0))block[i+ii][j+jj]=8;
          }
          else if(rand()%1000<4-i/25)
          {
          block[i][j]=9;
          for(int ii=-1;ii<=1;ii++)
          for(int jj=-1;jj<=1;jj++)
          if(rand()%10<=3&&(ii!=0||jj!=0))block[i+ii][j+jj]=9;
          }
          else if(rand()%1000<20-abs(x/5-15))
          {
          block[i][j]=11;
          for(int ii=-1;ii<=1;ii++)
          for(int jj=-1;jj<=1;jj++)
          if(rand()%10<=3&&(ii!=0||jj!=0))block[i+ii][j+jj]=11;
          }
          else if(rand()%100<100-abs(i-Dpx[j])*abs(i-Dpx[j])*abs(i-Dpx[j]))block[i][j]=2;
          else block[i][j]=5;
          if(Type==1||Type==4){if(rand()%10==0)block[Dpx[j]][j]=4,block[Dpx[j]+1][j]=4,block[Dpx[j]+2][j]=4,block[Dpx[j]+3][j]=15,block[Dpx[j]+2][j-1]=15,block[Dpx[j]+2][j+1]=15;}
          if(Type==2||Type==3){if(rand()%20==0)block[Dpx[j]][j]=4,block[Dpx[j]+1][j]=4,block[Dpx[j]+2][j]=4,block[Dpx[j]+3][j]=15,block[Dpx[j]+2][j-1]=15,block[Dpx[j]+2][j+1]=15;}
          if(Type==5){if(rand()%10==0)block[Dpx[j]][j]=4,block[Dpx[j]+1][j]=4,block[Dpx[j]+2][j]=4,block[Dpx[j]+3][j]=4,block[Dpx[j]+4][j]=4,block[Dpx[j]+5][j]=15,block[Dpx[j]+4][j-1]=15,block[Dpx[j]+4][j+1]=15,block[Dpx[j]+3][j+1]=15,block[Dpx[j]+3][j+2]=15,block[Dpx[j]+3][j-1]=15,block[Dpx[j]+3][j-2]=15;if(rand()%5==0)block[Dpx[j]][j]=4,block[Dpx[j]+1][j]=4,block[Dpx[j]+2][j]=4,block[Dpx[j]+3][j]=15,block[Dpx[j]+2][j-1]=15,block[Dpx[j]+2][j+1]=15;}
          if(Type==4&&village-j<-100&&rand()%10==0)
          {
          village=j;//system("pause");
          int bc=j;
          while(rand()%4<3)
          {
          int Node=rand()%3;
          if(Node==0)
          {
          block[Dpx[j]][j+1]=4;  block[Dpx[j]][j]=4;  block[Dpx[j]][j-1]=4;  block[Dpx[j]][j-2]=4;
          block[Dpx[j]+1][j+1]=4;block[Dpx[j]+1][j]=17;block[Dpx[j]+1][j-1]=0;block[Dpx[j]+1][j-2]=4;
          block[Dpx[j]+2][j+1]=4;block[Dpx[j]+2][j]=0;block[Dpx[j]+2][j-1]=0;block[Dpx[j]+2][j-2]=4;
          block[Dpx[j]+3][j+1]=4;block[Dpx[j]+3][j]=0;block[Dpx[j]+3][j-1]=0;block[Dpx[j]+3][j-2]=4;
          block[Dpx[j]+4][j]=4;block[Dpx[j]+4][j-1]=4;
          for(int i=1;i<=8;i++)
          {
          int list[20]={31,32,32,32,31,26,18,19,4,4,4,0};
          box[Dpx[j]+1][j][i].thing=list[rand()%20],box[Dpx[j]+1][j][i].num=rand()%10+1;
          }
          }
          if(Node==1)
          {
          block[Dpx[j]][j+1]=5;  block[Dpx[j]][j]=5;  block[Dpx[j]][j-1]=5;  block[Dpx[j]][j-2]=5;
          block[Dpx[j]+1][j+1]=5;block[Dpx[j]+1][j]=17;block[Dpx[j]+1][j-1]=0;block[Dpx[j]+1][j-2]=5;
          block[Dpx[j]+2][j+1]=5;block[Dpx[j]+2][j]=0;block[Dpx[j]+2][j-1]=0;block[Dpx[j]+2][j-2]=5;
          block[Dpx[j]+3][j+1]=5;block[Dpx[j]+3][j]=5;block[Dpx[j]+3][j-1]=5;block[Dpx[j]+3][j-2]=5;
          for(int i=1;i<=8;i++)
          {
          int list[20]={31,32,32,20,20,20,20,11,21,21,10,5,5,5,8,8};
          box[Dpx[j]+1][j][i].thing=list[rand()%20],box[Dpx[j]+1][j][i].num=rand()%10+1;
          }
          }
          if(Node==3)
          {
          block[Dpx[j]][j+1]=4;  block[Dpx[j]][j]=4;  block[Dpx[j]][j-1]=4;  block[Dpx[j]][j-2]=4;
          block[Dpx[j]+1][j+1]=4;block[Dpx[j]+1][j]=33;block[Dpx[j]+1][j-1]=0;block[Dpx[j]+1][j-2]=4;
          block[Dpx[j]+2][j+1]=4;block[Dpx[j]+2][j]=0;block[Dpx[j]+2][j-1]=0;block[Dpx[j]+2][j-2]=4;
          block[Dpx[j]+3][j+1]=4;block[Dpx[j]+3][j]=0;block[Dpx[j]+3][j-1]=0;block[Dpx[j]+3][j-2]=4;
          block[Dpx[j]+4][j]=4;block[Dpx[j]+4][j-1]=4;
          }
          j-=5;
          }
          j=bc;
          }
          }
          Type=2;
          for(int j=901;j<=1024;j++)
          {
          if(Type==2)Dpx[j]=Dpx[j-1];
          else if(Type==1) Dpx[j]=Dpx[j-1]+rand()%5-2;
          if(Dpx[j]>=100)Dpx[j]=64;
          else if(Dpx[j]<=30)Dpx[j]=64;
          lenth++;
          if(lenth>=5&&rand()%20==0)
          {
          Type=rand()%5+1;
          if(Type==1)Type=2;else Type=1;
          }
          for(int i=Dpx[j];i>=1;i--)
          if(i==Dpx[j]) block[i][j]=Type==1?34:35;
          else if(i==1)block[i][j]=1;else block[i][j]=34;
          if(Type==2&&rand()%10==0)block[Dpx[j]+3][j]=36;
          
          }
          y=y==0?512:y;
          x=Dpx[y]+2;
          op=2;
          }
          }
          void Output()
          {
          GOTO(0,0);Attack--;
          setcolor(bk,0);
          for(int i=x+5;i>=x-5;i--,puts(""))
          for(int j=y+5;j>=y-5;j--)
          {
          int BO1=0,BO2=0;
          for(int o=1;o<=64;o++)
          if(wor[o].x==i&&wor[o].y==j&&!wor[o].Delete)BO1=o;
          for(int o=1;o<=64;o++)
          if(wor[o].x+1==i&&wor[o].y==j&&!wor[o].Delete)BO2=o;
          if(BO1)
          {setcolor(bk,ATTACK[BO2]!=0?Green:NODE_COL[wor[BO1].node]);cout<<NODE[wor[BO1].node][1];
          }
          else if(BO2) {setcolor(bk,ATTACK[BO2]!=0?Green:NODE_COL[wor[BO1].node]);if(ATTACK[BO2]!=0)cout<<wor[BO2].heal;else cout<<NODE[wor[BO2].node][0];ATTACK[BO2]=0;
          }
          else if(i<0||j<0||i>1023||j>1023)
          {
          setcolor(bk,0);
          cout<<"  ";
          }
          else if(block[i][j]<0)
          {
          setcolor(bk,bk!=0?0:1);
          cout<<BODY[-block[i][j]];
          block[i][j]=0;
          }
          else
          {
          setcolor(bk,BLOCK_COL[block[i][j]]);
          cout<<BLOCK[block[i][j]];
          }
          }
          for(int i=1;i<=4;i++)cout<<"  "<<i<<"   ";puts("");
          for(int i=1;i<=4;i++)if(i!=now)
          {
          cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);
          cout<<BLOCK[bag[1][i].thing];setcolor(bk,Black);printf("%2d]",bag[1][i].num);
          }else
          {
          setcolor(bk,Red);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Red);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
          }setcolor(bk,Black);
          cout<<"\n坐标:"<<x<<" "<<y<<endl;
          setcolor(bk,Red);cout<<"生命:";
          for(int i=1;i<=10;i++)if(i<=Health)cout<<"●";else cout<<"○";
          setcolor(bk,Yellow);cout<<"\n饥饿:";
          for(int i=1;i<=10;i++)if(i<=Eat)cout<<"●";else cout<<"○";
          setcolor(bk,0);
          if(Attack>0)GOTO(0,0),cout<<"->";
          }
          void Clac();
          void BodyClac();
          void DEAD()
          {
          system("cls");
          cout<<"您去世了,欢迎来到天堂。\n";
          cout<<"A:下凡       B:返回";int Rap=0;
          while(1)
          {
          if(getch()=='a')
          {
          Rap++;
          if(Rap!=5)
          cout<<"\n注意审题!";else cout<<"\n注意审题!大写的A!";
          }
          if(getch()=='A')
          {
          Health=10;
          Eat=10;
          DIE=0;
          return;
          }
          if(getch()=='B')exit(0);
          }
          }
          void dig(int a,int X,int Y)
          {
          BodyClac();
          if((a==37||a==43)&&bag[1][now].thing==48)
          {
          bag[1][now].thing=a==37?49:50;block[X][Y]=0;return;
          }
          for(int O=1;O<=5;O++)
          {	GOTO(0,0);
          setcolor(bk,0);
          if(!DOWN('W')&&!DOWN('A')&&!DOWN('S')&&!DOWN('D'))return;
          for(int i=x+5;i>=x-5;i--,puts(""))
          for(int j=y+5;j>=y-5;j--)
          {
          if(i<0||j<0||i>1023||j>1023)
          {
          setcolor(bk,0);
          cout<<"  ";
          }
          else if(block[i][j]<0)
          {
          setcolor(bk,bk!=0?Black:1);
          cout<<BODY[-block[i][j]];
          }
          else
          {
          string Og[10]={"","▏ ","▎ ","▍ ","▋ ","▊ "};
          setcolor(bk,BLOCK_COL[block[i][j]]);
          if(i==X&&j==Y)cout<<Og[O];
          else cout<<BLOCK[block[i][j]];
          }
          }
          int wait=1000;
          if(bag[1][now].thing==18)wait=Hardmu[a];
          else if(bag[1][now].thing==19)wait=Hardsh[a];
          else if(bag[1][now].thing==22)wait=Hardti[a];
          else if(bag[1][now].thing==23)wait=Hardji[a];
          else if(bag[1][now].thing==24)wait=Hardzu[a];
          else wait=Hard[a];
          for(int F=0;F<=wait;F+=10)
          {
          if(!DOWN('W')&&!DOWN('A')&&!DOWN('S')&&!DOWN('D'))return;
          Sleep(10);
          }
       
       }
       if(bag[1][now].num>0)
       {
       int Rap=1;
       if(bag[1][now].thing==18)Rap=2;if(bag[1][now].thing==19)Rap=4;if(bag[1][now].thing==22)Rap=7;if(bag[1][now].thing==23)Rap=2;if(bag[1][now].thing==24)Rap=15;
       if(rand()%Rap==0)bag[1][now].nj--;GOTO(0,0);cout<<"耐久:"<<bag[1][now].nj;if(bag[1][now].nj==0)bag[1][now].num=0;
       }
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)if((bag[i][j].thing==0||bag[i][j].thing==a)&&bag[i][j].num<64)
       {
       bag[i][j].thing=a,bag[i][j].num++;block[X][Y]=0;return;
       }
       GOTO(0,0);cout<<"警报:背包已满,无法拾起";Sleep(1000);
       }
       void Bag()
       {
       int nowi=0,nowj=0,SPACE=0,Rp=0,Rpx=0,Rpy=0,willjian=0;
       while(1)
       {
       
       GOTO(0,0);
       setcolor(bk,Black);
       cout<<"Game Paused(点击Esc返回)\n";
       char Letter[10][10]={{},{' ','1','2','3','4'},{' ','Q','W','E','R'},{' ','A','S','D','F'},{' ','Z','X','C','V'},{' ','5','6','7','8','9'}};
       for(int i=2;i<=4;i++)
       {
       for(int j=1;j<=4;j++)if(i!=4||j>2)cout<<"  "<<Letter[i][j]<<"   ";else if(i==4&&j==1)cout<<"燃料"<<Letter[i][j];else cout<<"  烧制"<<Letter[i][j];puts("                            ");
       for(int j=1;j<=4;j++)if(nowj==j&&nowi==i)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Green);printf("%2d]",bag[i][j].num);setcolor(bk,Black);
       }
       else {cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Black);printf("%2d]",bag[i][j].num);}
       puts("                                \n                               ");
       }
       for(int i=1;i<=4;i++)cout<<"  "<<i<<"   ";puts("");
       for(int i=1;i<=4;i++)
       if(nowj==i&&nowi==1)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Green);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }
       else if(i!=now)
       {
       cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);
       cout<<BLOCK[bag[1][i].thing];setcolor(bk,Black);printf("%2d]",bag[1][i].num);
       }else
       {
       setcolor(bk,Red);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Red);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }puts("                                \n                         ");
       GOTO(1,25);cout<<"|-合-成-|_  ";
       GOTO(2,25);cout<<"|";if(bag[5][1].num==0)cout<<" 5 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[5][1].thing]);cout<<BLOCK[bag[5][1].thing];if(nowi!=5||nowj!=1)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[5][1].num);
       }setcolor(bk,Black);
       if(bag[5][2].num==0)cout<<" 6 | \\[";
       else
       {
       setcolor(bk,BLOCK_COL[bag[5][2].thing]);cout<<BLOCK[bag[5][2].thing];if(nowi!=5||nowj!=2)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d \\[",bag[5][2].num);
       }setcolor(bk,Black);
       if(bag[5][5].num==0)cout<<" 9 ]";
       else
       {
       setcolor(bk,BLOCK_COL[bag[5][5].thing]);cout<<BLOCK[bag[5][5].thing];if(nowi!=5||nowj!=5)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[5][5].num);
       }setcolor(bk,Black);
       GOTO(3,25);
       if(bag[5][3].num==0)cout<<"| 7 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[5][3].thing]);cout<<"|";cout<<BLOCK[bag[5][3].thing];if(nowi!=5||nowj!=3)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[5][3].num);
       }setcolor(bk,Black);
       if(bag[5][4].num==0)cout<<" 8 |_/ 结果";
       else
       {
       setcolor(bk,BLOCK_COL[bag[5][4].thing]);cout<<BLOCK[bag[5][4].thing];if(nowi!=5||nowj!=4)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d_/ 结果",bag[5][4].num);
       }setcolor(bk,Black);
       GOTO(8,25);cout<<"[    ] ()";
       GOTO(9,25);cout<<"[    ] ||";
       GOTO(10,25);cout<<"[    ] --";
       GOTO(11,25);cout<<"[    ] /\\";
       for(int i=1;i<=5;i++)
       for(int j=1;j<=(i<=4?4:5);j++)
       if(DOWN(Letter[i][j]))
       {
       if(SPACE)
       {
       if(bag[i][j].thing==Rp||bag[i][j].thing==0)
       {
       bag[i][j].thing=Rp;
       bag[i][j].num+=SPACE;SPACE=0;nowi=0;nowj=0;
       }
       else nowi=0,nowj=0;
       }
       else if(nowi!=0&&nowj!=0)
       {
       if(!(i!=5||j!=5))nowi=0;
       else
       {
       if((nowi!=i||nowj!=j)&&bag[i][j].thing==bag[nowi][nowj].thing&&bag[i][j].num+bag[nowi][nowj].num<=64)bag[i][j].num+=bag[nowi][nowj].num,bag[nowi][nowj].num=0;
       else swap(bag[i][j],bag[nowi][nowj]);
       if(nowi==5&&nowj==5)bag[5][1].num-=willjian,bag[5][2].num-=willjian,bag[5][3].num-=willjian,bag[5][4].num-=willjian;
       }
       Clac();
       nowi=0;nowj=0;
       }
       else
       nowi=i,nowj=j;
       }setcolor(bk,Black);
       
       if(DOWN(VK_SPACE)&&nowi&&bag[nowi][nowj].num>1&&!SPACE&&(nowi!=5||nowj!=5))
       {
       SPACE=bag[nowi][nowj].num-bag[nowi][nowj].num/2;Rp=bag[nowi][nowj].thing;bag[nowi][nowj].num=bag[nowi][nowj].num/2;
       nowi=0;nowj=0;}
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)
       if(DOWN(VK_ESCAPE))
       {
       system("cls");
       return;
       }
       willjian=0;bag[5][5].num=0;
       if(CanHc())
       {
       int Numlist[100];
       for(int i=1;i<=64;i++)Numlist[i]=1;
       Numlist[12]=2;Numlist[13]=2;Numlist[14]=4;
       int MIN=100;
       for(int i=1;i<=4;i++)if(bag[5][i].num!=0)MIN=min(MIN,bag[5][i].num);
       bag[5][5].num=Numlist[CanHc()]*min(64/Numlist[CanHc()],MIN);
       bag[5][5].thing=CanHc();willjian=min(64/Numlist[CanHc()],MIN);
       }
       int BOOO=0;
       while(!BOOO)
       {BOOO=1;
       for(int i=1;i<=5;i++)
       for(int j=1;j<=(i<=4?4:5);j++)
       if(DOWN(Letter[i][j])||DOWN(VK_ESCAPE)||DOWN(VK_SPACE))BOOO=0;
       }
       Sleep(20);
       
       }
       }
       void work(int R,int xx,int yy)
       {
       system("cls");
       if(R==33&&bk==bk0)
       {
       cout<<"按住E睡觉";
       for(int i=1;i<=10;i++)
       {
       if(!DOWN('E'))return;
       Sleep(1000);
       }
       Time=0;
       }
       if(R==17)
       {
       int nowi=0,nowj=0,SPACE=0,Rp=0,Rpx=0,Rpy=0,willjian=0;for(int i=1;i<=8;i++)swap(box[xx][yy][i],bag[5+i/5][i-i/5*4]);
       while(1)
       {
       GOTO(0,0);
       setcolor(bk,Black);
       cout<<"箱子(点击Esc返回)\n";
       int Letter[12][12]={{},{' ','1','2','3','4'},{' ','Q','W','E','R'},{' ','A','S','D','F'},{' ','Z','X','C','V'},{' ','T','Y','U','I'},{' ','G','H','J','K'}};
       
       for(int i=5;i<=6;i++)
       {
       for(int j=1;j<=4;j++)cout<<"  "<<(char)Letter[i][j]<<"   ";puts("         ");
       for(int j=1;j<=4;j++)
       if(nowj==j&&nowi==i)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Green);printf("%2d]",bag[i][j].num);setcolor(bk,Black);
       }
       else {cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Black);printf("%2d]",bag[i][j].num);}
       puts("         ");}cout<<"\n\n";
       for(int i=2;i<=4;i++)
       {
       for(int j=1;j<=4;j++)cout<<"  "<<(char)Letter[i][j]<<"   ";puts("                            ");
       for(int j=1;j<=4;j++)if(nowj==j&&nowi==i)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Green);printf("%2d]",bag[i][j].num);setcolor(bk,Black);
       }
       else {cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Black);printf("%2d]",bag[i][j].num);}
       puts("                                \n                               ");
       }
       for(int i=1;i<=4;i++)cout<<"  "<<i<<"   ";puts("");
       for(int i=1;i<=4;i++)
       if(nowj==i&&nowi==1)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Green);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }
       else if(i!=now)
       {
       cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);
       cout<<BLOCK[bag[1][i].thing];setcolor(bk,Black);printf("%2d]",bag[1][i].num);
       }else
       {
       setcolor(bk,Red);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Red);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }puts("                                \n                         ");
       Sleep(100);
       for(int i=1;i<=6;i++)
       for(int j=1;j<=4;j++)
       if(DOWN(Letter[i][j]))
       {
       if(SPACE)
       {
       if(bag[i][j].thing==Rp||bag[i][j].thing==0)
       {
       bag[i][j].thing=Rp;
       bag[i][j].num+=SPACE;SPACE=0;nowi=0;nowj=0;
       }
       else nowi=0,nowj=0;
       }
       else if(nowi!=0&&nowj!=0)
       {
       if(!(i!=6||j!=10))nowi=0;
       else
       {
       
       if((i!=nowi||j!=nowj)&&bag[i][j].thing==bag[nowi][nowj].thing&&bag[i][j].num+bag[nowi][nowj].num<=64)bag[i][j].num+=bag[nowi][nowj].num,bag[nowi][nowj].num=0;
       else swap(bag[i][j],bag[nowi][nowj]);
       //if(nowi==6&&nowj==10)bag[6][1].num-=willjian,bag[6][2].num-=willjian,bag[6][3].num-=willjian,bag[6][4].num-=willjian,bag[6][5].num-=willjian,bag[6][6].num-=willjian,bag[6][7].num-=willjian,bag[6][8].num-=willjian,bag[6][9].num-=willjian;
       }
       Clac();
       nowi=0;nowj=0;
       }
       else
       nowi=i,nowj=j;
       }setcolor(bk,Black);
       if(DOWN(VK_SPACE)&&nowi&&bag[nowi][nowj].num>1&&!SPACE&&(nowi!=6||nowj!=10))
       {
       SPACE=bag[nowi][nowj].num-bag[nowi][nowj].num/2;Rp=bag[nowi][nowj].thing;bag[nowi][nowj].num=bag[nowi][nowj].num/2;
       nowi=0;nowj=0;}
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)
       if(DOWN(VK_ESCAPE))
       {
       system("cls");for(int i=1;i<=8;i++)swap(box[xx][yy][i],bag[5+i/5][i-i/5*4]);
       return;
       }
       
       }
       
       }
       if(R==25)
       {
       int hot[64]={0};
       hot[4]=2;hot[12]=1;hot[11]=4;
       if(box[x][y][1].num==0&&(bag[4][1].thing==4||bag[4][1].thing==12||bag[4][1].thing==11))swap(box[x][y][1],bag[4][1]);
       if(box[x][y][2].num==0&&(bag[4][2].thing==6||bag[4][2].thing==8||bag[4][2].thing==9))swap(box[x][y][2],bag[4][2]);
       while(1)
       {
       GOTO(0,0);Clac();
       setcolor(bk,Black);
       cout<<"Game Paused(点击Esc返回)\n";
       for(int i=1;i<=3;i++)if(box[x][y][i].num==0)box[x][y][i].thing=0;
       if(DOWN('1'))
       {
       if(box[x][y][1].num==0)swap(box[x][y][1],bag[4][1]);
       else
       while(--box[x][y][1].num)
       {
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)if((bag[i][j].thing==0||bag[i][j].thing==box[x][y][1].thing)&&bag[i][j].num<64)
       {
       bag[i][j].thing=box[x][y][1].thing,bag[i][j].num++;goto RIP2;
       }
       }RIP2:;
       }
       if(DOWN('2'))
       {
       if(box[x][y][2].num==0)swap(box[x][y][2],bag[4][2]);
       else
       while(--box[x][y][2].num)
       {
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)if((bag[i][j].thing==0||bag[i][j].thing==box[x][y][2].thing)&&bag[i][j].num<64)
       {
       bag[i][j].thing=box[x][y][2].thing,bag[i][j].num++;goto RIP1;
       }
       }RIP1:;
       }
       if(DOWN('3'))
       {
       if(box[x][y][3].num<=0)box[x][y][3].num=0;
       while(--box[x][y][3].num)
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)if((bag[i][j].thing==0||bag[i][j].thing==box[x][y][3].thing)&&bag[i][j].num<64)
       {
       bag[i][j].thing=box[x][y][3].thing,bag[i][j].num++;
       goto RIP;
       }
       RIP:;
       }
       if(DOWN(VK_ESCAPE))return;
       cout<<"----烧炼----\n燃料:";
       setcolor(bk,BLOCK_COL[box[x][y][1].thing]);cout<<BLOCK[box[x][y][1].thing]<<box[x][y][1].num<<"\n";setcolor(bk,Black);
       cout<<"物品:";setcolor(bk,BLOCK_COL[box[x][y][2].thing]);cout<<BLOCK[box[x][y][2].thing]<<box[x][y][2].num<<"\n";setcolor(bk,Black);
       cout<<"烧制中:"<<box[x][y][4].num<<"%\n";setcolor(bk,Black);
       cout<<"结果:";setcolor(bk,BLOCK_COL[box[x][y][3].thing]);cout<<BLOCK[box[x][y][3].thing]<<box[x][y][3].num<<"\n";
       if(box[x][y][4].num==100)
       {
       box[x][y][4].num=0;
       box[x][y][2].num--;
       box[x][y][3].thing=((box[x][y][2].thing==6)?7:(box[x][y][2].thing==8)?20:(box[x][y][2].thing==9)?21:0);
       if(box[x][y][2].thing!=0)box[x][y][3].num++;
       }
       if(box[x][y][4].thing==0&&box[x][y][1].num!=0&&box[x][y][2].num!=0)
       {
       box[x][y][4].thing=hot[box[x][y][1].thing];
       box[x][y][1].num--;
       }
       Sleep(100);
       if(box[x][y][4].thing!=0&&box[x][y][2].num!=0)box[x][y][4].num++;
       }
       }
       if(R==16)
       {
       int nowi=0,nowj=0,SPACE=0,Rp=0,Rpx=0,Rpy=0,willjian=0;
       while(1)
       {
       GOTO(0,0);
       setcolor(bk,Black);
       cout<<"Game Paused(点击Esc返回)\n";
       int Letter[12][12]={{},{' ','1','2','3','4'},{' ','Q','W','E','R'},{' ','A','S','D','F'},{' ','Z','X','C','V'},{},{' ',VK_NUMPAD7,VK_NUMPAD8,VK_NUMPAD9,VK_NUMPAD4,VK_NUMPAD5,VK_NUMPAD6,VK_NUMPAD1,VK_NUMPAD2,VK_NUMPAD3,VK_ADD}};
       for(int i=2;i<=4;i++)
       {
       for(int j=1;j<=4;j++)cout<<"  "<<(char)Letter[i][j]<<"   ";puts("                            ");
       for(int j=1;j<=4;j++)if(nowj==j&&nowi==i)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Green);printf("%2d]",bag[i][j].num);setcolor(bk,Black);
       }
       else {cout<<"[";setcolor(bk,BLOCK_COL[bag[i][j].thing]);cout<<BLOCK[bag[i][j].thing];setcolor(bk,Black);printf("%2d]",bag[i][j].num);}
       puts("                                \n                               ");
       }
       for(int i=1;i<=4;i++)cout<<"  "<<i<<"   ";puts("");
       for(int i=1;i<=4;i++)
       if(nowj==i&&nowi==1)
       {
       setcolor(bk,Green);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Green);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }
       else if(i!=now)
       {
       cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);
       cout<<BLOCK[bag[1][i].thing];setcolor(bk,Black);printf("%2d]",bag[1][i].num);
       }else
       {
       setcolor(bk,Red);cout<<"[";setcolor(bk,BLOCK_COL[bag[1][i].thing]);cout<<BLOCK[bag[1][i].thing];setcolor(bk,Red);printf("%2d]",bag[1][i].num);setcolor(bk,Black);
       }puts("                                \n                         ");
       GOTO(1,25);setcolor(bk,Black);cout<<"|---合-成---|";
       GOTO(2,25);cout<<"|";if(bag[6][1].num==0)cout<<"N7 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][1].thing]);cout<<BLOCK[bag[6][1].thing];if(nowi!=6||nowj!=1)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][1].num);
       }setcolor(bk,Black);
       if(bag[6][2].num==0)cout<<"N8 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][2].thing]);cout<<BLOCK[bag[6][2].thing];if(nowi!=6||nowj!=2)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][2].num);
       }setcolor(bk,Black);
       if(bag[6][3].num==0)cout<<"N9 |_  ";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][3].thing]);cout<<BLOCK[bag[6][3].thing];if(nowi!=6||nowj!=3)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][3].num);
       }setcolor(bk,Black);
       GOTO(3,25);cout<<"|";if(bag[6][4].num==0)cout<<"N4 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][4].thing]);cout<<BLOCK[bag[6][4].thing];if(nowi!=6||nowj!=4)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][4].num);
       }setcolor(bk,Black);
       if(bag[6][5].num==0)cout<<"N5 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][5].thing]);cout<<BLOCK[bag[6][5].thing];if(nowi!=6||nowj!=5)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][5].num);
       }setcolor(bk,Black);
       if(bag[6][6].num==0)cout<<"N6 | \\[";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][6].thing]);cout<<BLOCK[bag[6][6].thing];if(nowi!=6||nowj!=6)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][6].num);
       }setcolor(bk,Black);
       if(bag[6][10].num==0)cout<<" + ]";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][10].thing]);cout<<BLOCK[bag[6][10].thing];if(nowi!=6||nowj!=10)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][10].num);
       }setcolor(bk,Black);
       GOTO(4,25);cout<<"|";if(bag[6][7].num==0)cout<<"N1 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][7].thing]);cout<<BLOCK[bag[6][7].thing];if(nowi!=6||nowj!=7)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][7].num);
       }setcolor(bk,Black);
       if(bag[6][8].num==0)cout<<"N2 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][8].thing]);cout<<BLOCK[bag[6][8].thing];if(nowi!=6||nowj!=8)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][8].num);
       }setcolor(bk,Black);
       if(bag[6][9].num==0)cout<<"N3 |";
       else
       {
       setcolor(bk,BLOCK_COL[bag[6][9].thing]);cout<<BLOCK[bag[6][9].thing];if(nowi!=6||nowj!=9)setcolor(bk,Black);else setcolor(bk,Green);printf("%2d",bag[6][9].num);
       }
       Sleep(100);
       for(int i=1;i<=6;i++)
       for(int j=1;j<=(i<=5?4:10);j++)
       if(DOWN(Letter[i][j]))
       {
       if(SPACE)
       {
       if(bag[i][j].thing==Rp||bag[i][j].thing==0)
       {
       bag[i][j].thing=Rp;
       bag[i][j].num+=SPACE;SPACE=0;nowi=0;nowj=0;
       }
       else nowi=0,nowj=0;
       }
       else if(nowi!=0&&nowj!=0)
       {
       if(!(i!=6||j!=10))nowi=0;
       else
       {
       
       if((i!=nowi||j!=nowj)&&bag[i][j].thing==bag[nowi][nowj].thing&&bag[i][j].num+bag[nowi][nowj].num<=64)bag[i][j].num+=bag[nowi][nowj].num,bag[nowi][nowj].num=0;
       else swap(bag[i][j],bag[nowi][nowj]);
       if(nowi==6&&nowj==10)bag[6][1].num-=willjian,bag[6][2].num-=willjian,bag[6][3].num-=willjian,bag[6][4].num-=willjian,bag[6][5].num-=willjian,bag[6][6].num-=willjian,bag[6][7].num-=willjian,bag[6][8].num-=willjian,bag[6][9].num-=willjian;
       }
       Clac();
       nowi=0;nowj=0;
       }
       else
       nowi=i,nowj=j;
       }setcolor(bk,Black);
       if(DOWN(VK_SPACE)&&nowi&&bag[nowi][nowj].num>1&&!SPACE&&(nowi!=6||nowj!=10))
       {
       SPACE=bag[nowi][nowj].num-bag[nowi][nowj].num/2;Rp=bag[nowi][nowj].thing;bag[nowi][nowj].num=bag[nowi][nowj].num/2;
       nowi=0;nowj=0;}
       for(int i=1;i<=4;i++)
       for(int j=1;j<=4;j++)
       if(DOWN(VK_ESCAPE))
       {
       system("cls");
       return;
       }
       willjian=0;bag[6][10].num=0;
       if(CanHc2())
       {
       int Numlist[100];
       for(int i=1;i<=64;i++)Numlist[i]=1;
       Numlist[12]=2;Numlist[13]=2;Numlist[14]=4;
       int MIN=100;
       for(int i=1;i<=9;i++)if(bag[6][i].num!=0)MIN=min(MIN,bag[6][i].num);
       bag[6][10].num=Numlist[CanHc2()]*min(64/Numlist[CanHc2()],MIN);
       bag[6][10].thing=CanHc2();willjian=Numlist[CanHc2()]*min(64/Numlist[CanHc2()],MIN);
       }
       }
       
       }
       }
       int Can(int X,int Y)
       {
       for(int i=1;i<=64;i++)if(X==wor[i].x&&Y==wor[i].y&&!wor[i].Delete)return 0;
       if(block[X][Y]==0&&block[X+1][Y]==0)return 1;return 0;
       }
       int JS(int x,int y)
       {
       for(int i=1;i<=64;i++)if((x==wor[i].x||x==wor[i].x+1)&&y==wor[i].y&&!wor[i].Delete)return i;
       return 0;
       }
       void attack(int Node)
       {
       GOTO(0,0);
       int la= wor[Node].heal;
       if(Attack>0)
       {
       return;
       }
       if(bag[1][now].thing==26)
       {
       wor[Node].heal--;
       if(rand()%2==0)wor[Node].heal--;
       }
       else if(bag[1][now].thing==27)
       {
       wor[Node].heal-=2;
       if(rand()%2==0)wor[Node].heal--;
       }
       else if(bag[1][now].thing==28)
       {
       wor[Node].heal-=3;
       if(rand()%3==0)wor[Node].heal-=3;
       }
       else if(bag[1][now].thing==29)
       {
       wor[Node].heal-=3;
       if(rand()%4==0)wor[Node].heal-=2;
       }
       else if(bag[1][now].thing==30)
       {
       wor[Node].heal-=5;
       if(rand()%4==0)wor[Node].heal-=5;
       }
       else wor[Node].heal-=rand()%2==0;Attack=15;
       if(bag[1][now].num>0)
       {
       int Rap=1;
       if(bag[1][now].thing==26)Rap=4;if(bag[1][now].thing==27)Rap=10;if(bag[1][now].thing==28)Rap=16;if(bag[1][now].thing==29)Rap=5;if(bag[1][now].thing==30)Rap=40;
       if(rand()%Rap==0)bag[1][now].nj--;GOTO(0,0);cout<<"耐久:"<<bag[1][now].nj;if(bag[1][now].nj==0)bag[1][now].num=0;
       }
       GOTO(0,0);setcolor(bk,1);ATTACK[Node]=la-wor[Node].heal;
       }
       void Input()
       {
       for(int i='1';i<='4';i++)
       if(DOWN(i))now=i-'0';
       if(!DOWN(VK_SHIFT))
       {
    
    
    
    if(DOWN('E')&&(bag[1][now].thing==31||bag[1][now].thing==32)&&Eat<10)
    {
    for(int i=1;i<=30;i++)
    {
    Clac();
    Sleep(100);
    if(!DOWN('R'))break;
    }
    Eat++;bag[1][now].num--;
    }else if(DOWN('E'))Bag();
    else if(DOWN('D')&&Can(x,y-1))y--;
    else if(DOWN('A')&&Can(x,y+1))y++;
    else if(DOWN('D')&&block[x+1][y-1]!=0)dig(block[x+1][y-1],x+1,y-1);
    else if(DOWN('D')&&block[x][y-1]!=0)dig(block[x][y-1],x,y-1);
    else if(DOWN('A')&&block[x+1][y+1]!=0)dig(block[x+1][y+1],x+1,y+1);
    else if(DOWN('A')&&block[x][y+1]!=0)dig(block[x][y+1],x,y+1);
    else if(DOWN('W')&&block[x+2][y]!=0)dig(block[x+2][y],x+2,y);
    else if(DOWN('S')&&block[x-1][y]!=0)dig(block[x-1][y],x-1,y);
    else if(DOWN('D')&&JS(x,y-1))attack(JS(x,y-1));
    else if(DOWN('A')&&JS(x,y-1))attack(JS(x,y+1));
    else if(DOWN('D')&&JS(x+1,y-1))attack(JS(x+1,y-1));
    else if(DOWN('A')&&JS(x+1,y+1))attack(JS(x+1,y+1));
    
    }
    else
    {
    if(CANPUT[bag[1][now].thing])
    {
    if(DOWN('D')&&block[x+1][y-1]==0&&bag[1][now].num!=0)block[x+1][y-1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('D')&&block[x][y-1]==0&&bag[1][now].num!=0)block[x][y-1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('A')&&block[x+1][y+1]==0&&bag[1][now].num!=0)block[x+1][y+1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('A')&&block[x][y+1]==0&&bag[1][now].num!=0)block[x][y+1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('W')&&block[x+2][y]==0&&bag[1][now].num!=0)block[x+2][y]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('S')&&block[x-1][y]==0&&bag[1][now].num!=0)block[x-1][y]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('E')&&block[x+2][y-1]==0&&bag[1][now].num!=0)block[x+2][y-1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('Q')&&block[x+2][y+1]==0&&bag[1][now].num!=0)block[x+2][y+1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('Z')&&block[x-1][y-1]==0&&bag[1][now].num!=0)block[x-1][y-1]=bag[1][now].thing,bag[1][now].num--;
    else if(DOWN('C')&&block[x-1][y+1]==0&&bag[1][now].num!=0)block[x-1][y+1]=bag[1][now].thing,bag[1][now].num--;
    }
    else if(DOWN('D')&&(block[x+1][y-1]==33||block[x+1][y-1]==17||block[x+1][y-1]==16||block[x+1][y-1]==25))work(block[x+1][y-1],x+1,y-1);
    else if(DOWN('D')&&(block[x][y-1]==33||block[x][y-1]==17||block[x][y-1]==16||block[x][y-1]==25))work(block[x][y-1],x,y-1);
    else if(DOWN('A')&&(block[x+1][y+1]==33||block[x+1][y+1]==17||block[x+1][y+1]==16||block[x+1][y+1]==25))work(block[x+1][y+1],x+1,y+1);
    else if(DOWN('A')&&(block[x][y+1]==33||block[x][y+1]==17||block[x][y+1]==16||block[x][y+1]==25))work(block[x][y+1],x,y+1);
    else if(DOWN('W')&&(block[x+2][y]==33||block[x+2][y]==17||block[x+2][y]==16||block[x+2][y]==25))work(block[x+2][y],x+2,y);
    else if(DOWN('S')&&(block[x-1][y]==33||block[x-1][y]==17||block[x-1][y]==16||block[x-1][y]==25))work(block[x-1][y],x-1,y);
    
    }
    if(DOWN(VK_SPACE)&&block[x+2][y]==0&&block[x-1][y]!=0)UPDOWN_SPEED=1;
    
    if(DOWN(VK_OEM_2))
    {
    GOTO(9,0);
    cout<<"Game Paused";
    GOTO(10,0);
    cout<<"Input:                 ";
    GOTO(10,6);ShowCursor();
    string str;cin>>str;
    if(op>1)
    {
    if(str=="/time")
    {string num;
    cin>>num;
    Time=toint(num);
    }
    if(str=="/tp")
    {string num;
    cin>>num;
    x=toint(num);cin>>num;y=toint(num);if(x==0)x=Dpx[y]+1;
    }
    if(str=="/health")
    {string num;
    cin>>num;
    Health=toint(num);
    }
    if(str=="/summon")
    {
    string num;int X,Y,Z;
    cin>>num;
    if(num[0]=='~')
    {
    if(num[1]=='+')
    X=x+toint(num);
    else if(num[1]=='-')X=x-toint(num);
    }
    else X=toint(num);
    cin>>num;
    if(num[0]=='~')
    {
    if(num[1]=='+')
    Y=y+toint(num);
    else if(num[1]=='-')Y=y-toint(num);
    }
    else Y=toint(num);
    cin>>num;
    Z=toint(num);//cout<<X<<","<<Y<<":"<<Z;
    for(int i=1;i<=64;i++)
    if(wor[i].Delete)
    {
    wor[i].Delete=0;
    wor[i].x=X;
    wor[i].y=Y;
    wor[i].heal=10;
    wor[i].node=Z;return;
    }
    }
    if(str=="/set")
    {
    string num;int X,Y,Z;
    cin>>num;
    if(num[0]=='~')
    {
    if(num[1]=='+')
    X=x+toint(num);
    else if(num[1]=='-')X=x-toint(num);
    }
    else X=toint(num);
    cin>>num;
    if(num[0]=='~')
    {
    if(num[1]=='+')
    Y=y+toint(num);
    else if(num[1]=='-')Y=y-toint(num);
    }
    else Y=toint(num);
    cin>>num;
    Z=toint(num);
    block[X][Y]=Z;
    }
    if(str=="/give")
    {
    string num;
    cin>>num;
    for(int i=1;i<=4;i++)
    for(int j=1;j<=4;j++)if((bag[i][j].thing==0||bag[i][j].thing==toint(num))&&bag[i][j].num<1)
    {
    bag[i][j].thing=toint(num),bag[i][j].num+=64;return;
    }
    }
    }system("cls");
    }
    HideCursor();
    }
    int Min,Minx,Miny,vis[258][1029],Rap;
    void AI(int X,int Y,int k,int mx,int my)
    {
    //cout<<X<<","<<Y<<endl;
    Rap++;
    if(k>=Min||vis[X][Y]||abs(X-x)+abs(Y-y)>=12)return;
    if(X<1||Y<1||X>200||Y>1000)return;
    vis[X][Y]=1;
    if(X==x&&Y==y)
    {
    Min=k;
    Minx=mx,Miny=my;
    return;
    }
    if(block[X-1][Y]==0&&!vis[X-1][Y])AI(X-1,Y,k+1,mx,my);
    else
    {
    if(Can(X,Y+1)&&!vis[X][Y+1])AI(X,Y+1,k+1,k==0?0:mx,k==0?1:my);
    if(Can(X,Y-1)&&!vis[X][Y-1])AI(X,Y-1,k+1,k==0?0:mx,k==0?-1:my);
    if(Can(X+1,Y+1)&&!vis[X+1][Y+1])AI(X+1,Y+1,k+1,k==0?1:mx,k==0?1:my);
    if(Can(X+1,Y-1)&&!vis[X+1][Y-1])AI(X+1,Y-1,k+1,k==0?1:mx,k==0?-1:my);
    }
    vis[X][Y]=0;	
    }
    void Clac()
    {
    Time++;int cc=0;
    for(int i=x-10;i<=x+10;i++)
    for(int j=y-10;j<=y+10;j++)
    if(block[i][j]==47&&block[i+3][j]==47&&x==i+1&&y==j)cc=1;
    if(cc)Rape++;
    else Rape=0;
    if(Rape)
    {
    if(Rape<10)
    {
    system("cls");Sleep(100);
    }
    else
    {
    Rape=0;
    if(y<900)
    {
    YLY=y;
    y=y/10+900;
    x=Dpx[y]+1;
    block[x-1][y-1]=47;block[x+2][y-1]=47;
    }
    else
    {
    y=YLY;
    x=Dpx[y]+1;
    }
    }
    }
    if(Eat>8&&Health<10)
    {
    int Rp=rand()%20==0;
    if(Rp)
    Health++,Eat-=rand()%2==0;
    }
    if(Time%DayLong>=DayLong*7/10)bk=bk3;
    else if(Time%DayLong>=DayLong*6/10)bk=bk2;
    else if(Time%DayLong>=DayLong*5/10)bk=bk1;
    else if(Time%DayLong<DayLong/2)bk=bk0;
    for(int i=x-5;i<=x+5;i++)
    for(int j=y-15;j<=y+15;j++)if(Can(i,j)&&(block[i-1][j]==36||block[i][j-1]==36||block[i][j+1]==36)&&rand()%200==0)
    {
    for(int o=1;o<=64;o++)
    if(wor[o].Delete)
    {
    wor[o].Delete=0;
    wor[o].x=i;
    wor[o].y=j;
    wor[o].heal=5;
    wor[o].node=2;break;
    }
    }
    if(bk==bk3||bk==bk2)
    {
    for(int i=x-30;i<=x+30;i++)
    for(int j=y-30;j<=y+30;j++)
    if(Can(i,j)&&block[i-1][j]!=0&&abs(i-x)+abs(j-y)>12&&rand()%200==0)
    {
    for(int o=1;o<=64;o++)
    if(wor[o].Delete)
    {
    wor[o].Delete=0;
    wor[o].x=i;
    wor[o].y=j;
    wor[o].heal=10;
    wor[o].node=0;break;
    }
    }
    else if(Can(i,j)&&block[i-1][j]!=0&&abs(i-x)+abs(j-y)>12&&rand()%300==0)
    {
    for(int o=1;o<=64;o++)
    if(wor[o].Delete)
    {
    wor[o].Delete=0;
    wor[o].x=i;
    wor[o].y=j;
    wor[o].heal=10;
    wor[o].node=1;break;
    }
    }
    }
    for(int i=x-10;i<=x+10;i++)
    for(int j=y-10;j<=y+10;j++)if(block[i][j]==42||block[i][j]==38||block[i][j]==39||block[i][j]==40||block[i][j]==44||block[i][j]==46||block[i][j]==45)block[i][j]=0;
    for(int i=x-10;i<=x+10;i++)
    for(int j=y-10;j<=y+10;j++)
    if(i>0&&j>0)
    {
    if(j>900&&(block[i][j]==37))block[i][j]=0;
    if(block[i][j]==37||block[i][j]==38||block[i][j]==39||block[i][j]==40||block[i][j]==42)
    {
    if(!block[i-1][j]||block[i-1][j]==42)block[i-1][j]=42;
    else
    {
    if(!block[i][j+1]&&block[i][j]!=42)block[i][j+1]=block[i][j]+1;	
    if(!block[i][j-1]&&block[i][j]!=42)block[i][j-1]=block[i][j]+1;
    }
    }
    if(block[i][j]==43||block[i][j]==44||block[i][j]==46)
    {
    if(!block[i-1][j]||block[i-1][j]==46)block[i-1][j]=42;
    else
    {
    if(!block[i][j+1]&&block[i][j]!=46)block[i][j+1]=block[i][j]+1;	
    if(!block[i][j-1]&&block[i][j]!=46)block[i][j-1]=block[i][j]+1;
    }
    }
    if(block[i][j]==43&&(block[i+1][j]>=37&&block[i+1][j]<=42||block[i][j-1]>=37&&block[i][j-1]<=42||block[i][j+1]>=37&&block[i][j+1]<=42))block[i][j]=47;
    if(block[i+1][j]>=43&&block[i+1][j]<=46&&(block[i+1][j]>=37&&block[i+1][j]<=42||block[i][j-1]>=37&&block[i][j-1]<=42||block[i][j+1]>=37&&block[i][j+1]<=42))block[i][j]=5;
    }
    for(int i=1;i<=64;i++)
    if(wor[i].heal<=0&&wor[i].Delete==0)
    {
    int GIVET=0,RP=1;
    if(wor[i].node==0)GIVET=rand()%2==0?31:rand()%20==0?20:0;
    if(wor[i].node==1)GIVET=rand()%2==0?47:0;
    if(wor[i].node==2)GIVET=rand()%2==0?51:0;
    for(int T=1;T<=4&&RP;T++)
    for(int j=1;j<=4;j++)if((bag[T][j].thing==0||bag[T][j].thing==GIVET)&&bag[T][j].num<64)
    {
    bag[T][j].thing=GIVET,bag[T][j].num++;RP=0;break;
    }
    wor[i].Delete=1;
    }
    else if(Time%5==0&&!wor[i].Delete)
    {
    if(block[wor[i].x-1][wor[i].y]==0)wor[i].x--;
    else if(wor[i].node==1&&abs(wor[i].x-x)+abs(wor[i].y-y)<=4)
    {
    for(int ii=wor[i].x-3;ii<=wor[i].x+3;ii++)
    for(int jj=wor[i].y-3;jj<=wor[i].y+3;jj++)
    if(abs(ii-wor[i].x)+abs(jj-wor[i].y)<=3)block[ii][jj]=0;wor[i].Delete=1;
    Health-=pow(2,5-abs(wor[i].x-x)-abs(wor[i].y-y));
    }
    else if(wor[i].node==2&&abs(wor[i].x-x)+abs(wor[i].y-y)<=5)
    {
    Health-=rand()%3==0;
    }
    else if(abs(wor[i].x-x)+abs(wor[i].y-y)>64)wor[i].Delete=1;
    else if(abs(wor[i].y-y)==1&&abs(wor[i].x-x)<=1)Health-=(Time%3==0);
    else if(abs(wor[i].x-x)+abs(wor[i].y-y)<20)
    {
    Min=12;Minx=0,Miny=0;memset(vis,0,sizeof(vis)); Rap=0;
    AI(wor[i].x,wor[i].y,0,0,0);
    if(Minx!=0||Miny!=0)
    wor[i].x+=Minx,wor[i].y+=Miny;
    else wor[i].y+=(rand()%4==0)*(rand()%3-1);//cout<<Minx<<","<<Miny<<":"<<Rap<<"          "<<endl;
    }
    }
    
    for(int i=1;i<=6;i++)
    for(int j=1;j<=10;j++)if(bag[i][j].num<=0)bag[i][j].thing=0,bag[i][j].num=0;else if(bag[i][j].nj==0)bag[i][j].nj=10;
    for(int i=1;i<=abs(UPDOWN_SPEED);i++)
    if(block[x-1][y]==0||UPDOWN_SPEED==1)
    {
    if(UPDOWN_SPEED>0)x++;else x--;
    
    }
    if(FN==0)
    {
    if(block[x-1][y]!=0)
    {
    Health-=(-UPDOWN_SPEED-2>0)?pow(2,-UPDOWN_SPEED-2):0;
    UPDOWN_SPEED=0;
    }
    else UPDOWN_SPEED--;
    }
    else {
    if(DOWN('S'))x--;else if(DOWN('W'))x++;}
    //DIE=0;
    }
    void BodyClac()
    {
    if(Health<=0)DIE=1;
    if(DIE==0)
    {
    if(block[x+1][y]!=0)Health-=(rand()%10==0);
    if(block[x][y]==0)block[x][y]=-3;
    if(block[x+1][y]==0)block[x+1][y]=-1;
    }
    else
    {
    if(block[x][y]==0)block[x][y]=-3;
    if(block[x+1][y]==0)block[x+1][y]=-2;
    DEAD();
    }
    }
    void Start()
    {
    cout<<"  "<<endl;
    while(1)
    {
    BodyClac();
    Output();
    Input();
    Clac();
    Sleep(100);
    }
    }
    int main()
    {
    srand(time(0));
    CreateWorld(2);
    Start();
    }
    
    

    `

    
    ---
    
    跑酷代码
    #include<bits/stdc++.h>
    #include<windows.h>
    #include<stdio.h>
    #include<conio.h>
    #include<time.h>
    #define Nor if(B[b].x<5) B[b].x=5;
    #define Out1 Bx1-Bvx1<=6||Bx1-Bvx1>=28||By1-Bvy1<=7||By1-Bvy1>=27
    #define Out2 Bx2-Bvx2<=6||Bx2-Bvx2>=28||By2-Bvy2<=7||By2-Bvy2>=27
    #define Chang1 {Bwhat1=0;Bvx1=Bvy1=0;memset(Bgo1,0,sizeof(Bgo1));}
    #define Chang2 {Bwhat2=0;Bvx2=Bvy2=0;memset(Bgo2,0,sizeof(Bgo2));}
    #define Chang3 {Bwhat3=0;Bvx3=Bvy3=0;memset(Bgo3,0,sizeof(Bgo3));}
    using namespace std;
    int ti(float a) {return ((int)(a*10+5))/10;}
    void Setpos(float x,float y) {COORD pos;pos.X=ti(y*4)/2;pos.Y=ti(x);SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);}
    void Color(int a) {if(a==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);if(a==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);if(a==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);if(a==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);if(a==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);if(a==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);if(a==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_GREEN|BACKGROUND_BLUE);if(a==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED|BACKGROUND_BLUE);if(a==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_BLUE);if(a==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN);if(a==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY);if(a==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_GREEN|FOREGROUND_BLUE);}
    int Blomax,Ren,Exp,Expmax,Lv,Lvl,Ice,Drug,ar1,ar2,Tar1,Tar2,bl,br,Win,T,Tb,Sy,Up,Upt,Down,u1,u2,Kill,Killb,L,Ll[4],Li,D,Gd[10],Biao,Fire,Fir,fir[4],Water,Thun,Wind,Magne,I[20][2],ib,Dis,Disb,Dis1,Disb1,Boss,Bblo,Bblomax,Bwhat1,Bwhat2,Bwhat3,Bgo1[10],Bgo2[10],Bgo3[10],Bbr,Bbl,Bl[4];
    float X,Y,Vx,Vy,Ding,Blo,Hui,Bx1,By1,Bx2,By2,Bx3,By3,Bvx1,Bvy1,Bvx2,Bvy2,Bvx3,Bvy3,Bway[1001][2];
    struct bullet {float x,y,vx,vy;int what;int a,t,How;int life;bool kill;}B[100001];
    void Map(int a,int b);
    void Pan(int a,float x,float y,int b) {
    float Nox[4],Noy[4];Nox[0]=X,Noy[0]=Y;
    if(Down==1&&X==22) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;else if(Down==2) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;else if(Down==1||X<18) Nox[1]=X-1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;else Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    for(int i=0;i<3;i++){
    if(a==-1){if(abs(x-Nox[i])+abs(y-Noy[i])<1.5) {if(B[b].what==-10)Exp+=2;if(B[b].what==-11)Exp+=1;B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}
    if(a==-2) {if(abs(x-Nox[i])+abs(y-Noy[i])<2.5) {if(B[b].what==-2)Exp+=5,Biao+=5;if(B[b].what==-3)Fire=300,Ice=0,Fir=3;if(B[b].what==-4)Water=200;if(B[b].what==-5){Wind=70;Ding=28.25;Ice=0;if(Y=1) Vx=-5;if(Down==2) Vx=5;}if(B[b].what==-6) {Thun=200;system("color 1F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");}if(B[b].what==-7)Magne=300;if(B[b].what==-8)Ice=0,Drug=0,Blo=fmin((float)Blomax,Blo+20);if(B[b].what==-9)Exp=fmin((float)Expmax,Exp+20);B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}
    }if(Wind==0&&Thun==0&&(B[b].kill!=0||Killb>=15||Ren==1&&Killb>0)) return;
    for(int i=0;i<3;i++) {
    if((Wind>=1||Thun>=1)&&abs(x-Nox[i])+abs(y-Noy[i])<2.5) {if(B[b].what<98)Exp+=2;B[b].life=0;Map(3,b);break;}
    if(a==1) {if(abs(x-Nox[i])<0.5&&abs(y-Noy[i])<1) {if(B[b].what>=99)Blo-=10;if(B[b].what==14)Blo-=15,Ice=100,B[b].life=0;else if(B[b].what==15)Blo-=20,Ice=0,B[b].life=0;else if(B[b].what==17)Blo-=5,Drug=100,B[b].life=0;else if(B[b].what>=13&&B[b].what<=17)Blo-=10,B[b].life=0;else Blo-=15;B[b].kill=1,Killb=20;Kill=1;Map(3,b);break;}}
    if(a==2||a==6||a==8||a==9||a==10||a==11||a==12) {if(abs(x-Nox[i])+abs(y-Noy[i])<1.5) {if(a==2)Blo-=20;else if(a==8)Blo-=10;else Blo-=15;B[b].kill=1,Killb=20;Kill=1;if(a!=2){B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}}
    if(a==4) {if((Wind>=1||Thun>=1)&&abs(x-Nox[i])<1.5&&Noy[i]-y<=0&&Noy[i]-y>=-8) {if(B[b].what<98)Exp+=2;B[b].life=0;Map(3,b);break;}if(abs(x-Nox[i])<1&&Noy[i]-y<=0&&Noy[i]-y>=-8) {Blo-=25,B[b].kill=1,Killb=20;Kill=1;Vy=-1;Y-=0.5;break;}}
    }
    }
    void Map(int a,int b) {
    Color(0);
    if(a==-1){
    if(Boss==1||Boss==6){if(Bwhat1==5){if(ti(Bx1)==20)Setpos(Bx1,By1),cout<<"==";else Setpos(Bx1,By1),cout<<"  ";}else {Setpos(Bx1-1,By1-0.5),cout<<"    ";Setpos(Bx1,By1-1),cout<<"      ";Setpos(Bx1+1,By1-0.5),cout<<"    ";if(abs(ti(Bx1)-20)<=1)Setpos(20,By1-1),cout<<"======";}}
    if(Boss==2||Boss==6) {Setpos(Bx2-1,By2-1);cout<<"    ";Setpos(Bx2,By2-1);cout<<"      ";Setpos(Bx2+1,By2-1),cout<<"      ";Color(0);if(abs(ti(Bx2)-20)<=1)Setpos(20,By2-1),cout<<"======";}
    if(Boss==3||Boss==6) {Setpos(Bx3-1,By3-0.5);cout<<"     ";Setpos(Bx3,By3);cout<<"  ";Setpos(Bx3+1,By3-1),cout<<"      ";Color(0);if(abs(ti(Bx3)-20)<=1)Setpos(20,By3-1),cout<<"=======";}
    if(X<0)return;if(X>=17&&X<=19) {Setpos(X-1,Y);cout<<"  ";Setpos(X,Y-1);cout<<"   ";Setpos(X+1,Y-1),cout<<"   ";}else if(X<=23&&X>=21) {Setpos(X+1,Y);cout<<"  ";Setpos(X,Y-1);cout<<"   ";Setpos(X-1,Y-1),cout<<"    ";}else if(X>23) {Setpos(X,Y-1);cout<<"    ";Setpos(X-1,Y-0.5),cout<<"   ";}else if(X<17&&Upt!=0) {Setpos(X,Y-1);cout<<"    ";Setpos(X+1,Y-1.5),cout<<"    ";}else if(X<17) {Setpos(X,Y-1);cout<<"    ";Setpos(X+1,Y-0.5),cout<<"   ";}if(Thun>0) {Setpos(X-2,Y-1),cout<<"    ";Setpos(X+2,Y-1),cout<<"    ";Setpos(X,Y+2),cout<<"  ";Setpos(X,Y-2.5),cout<<"  ";Setpos(X-1,Y+1),cout<<"  ";Setpos(X+1,Y+1),cout<<"  ";Setpos(X-1,Y-2),cout<<"  ";Setpos(X+1,Y-2),cout<<"  ";Setpos(20,Y-2.5),cout<<"============";}if(Wind!=0) {Setpos(X+1,Y-5);cout<<"        ";Setpos(X,Y-5);cout<<"        ";Setpos(X-1,Y-5);cout<<"        ";Setpos(20,Y-5),cout<<"========";}if(Water!=0) {Setpos(X,Y-4);cout<<"       ";Setpos(X+2,Y-3.5);cout<<"     ";Setpos(X-2,Y-3.5);cout<<"     ";Setpos(X+1,Y-3.5);cout<<"     ";Setpos(X-1,Y-3.5);cout<<"     ";Setpos(20,Y-5),cout<<"========";}if(Fire!=0) {Setpos(X,Y+1),cout<<"  ";Setpos(X+1,Y),cout<<"  ";Setpos(X-1,Y-1),cout<<"  ";Setpos(20,Y-1);cout<<"======";}
    }
    if(a==0) {
    if(Boss==1||Boss==6){if(Bwhat1==5)Color(5),Setpos(Bx1,By1),cout<<"█",Color(0);else if(Bwhat1==4&&Bgo1[1]>6&&Bgo1[1]<11)Color(4),Setpos(Bgo1[5]-1,Bgo1[6]),cout<<"︻",Setpos(Bgo1[5],Bgo1[6]-1),cout<<"【",Setpos(Bgo1[5],Bgo1[6]+1),cout<<"】",Setpos(Bgo1[5]+1,Bgo1[6]),cout<<"︼",Color(0);else{Setpos(Bx1-1,By1-0.5),Color(0),cout<<"●●";Setpos(Bx1,By1-1);if(Bwhat1==2&&Bgo1[1]<=5)Color(1);else if(Bwhat1==3&&Bgo1[1]<=5)Color(5);else if(Bwhat1==6&&Bgo1[1]<=5)Color(8); else Color(4);if(Bwhat1==4) Setpos(Bx1,By1-0.5),cout<<"██(";else cout<<")██(";Setpos(Bx1+1,By1-0.5),cout<<"……";Color(0);}}
    if(Boss==2||Boss==6) {Setpos(Bx2-1,By2-1);Color(0),cout<<"\\ ";Color(0);cout<<"●";Setpos(Bx2,By2-1);Color(3);cout<<"◥";Color(5),cout<<"JJJ";Color(0),cout<<">";Color(3);Setpos(Bx2+1,By2-1),cout<<"◢█◣";Color(0);}
    if(Boss==3||Boss==6) {Setpos(Bx3-1,By3-0.5);if(Bwhat3==3||Bwhat3==9) Color(1);else if(Bwhat3==4||Bwhat3==10) Color(4);else if(Bwhat3==5||Bwhat3==11) Color(5);if(Bwhat3==11)cout<<' ';else if(Bwhat3==6) Color(3);else Color(2);cout<<"●-";Setpos(Bx3,By3);if(Bwhat3==11)cout<<"/";else cout<<"┃";Color(0);Setpos(Bx3+1,By3-1),cout<<"●●●";}
    if(X<0)return;if(Ren==2) Color(12);if(Ren==3) Color(1);if(Ren==4) Color(3);if(Ren==5) Color(4);if(Ren==6) Color(2);if(Drug!=0&&T%5!=0) Color(11);if(Drug!=0&&T%5==0) Color(11);if(Ice!=0) Color(6);if(b==1) Color(8);if(Li!=0) Color(5);if(Ren==1&&Killb>0&&T%4<2) Color(13);if(Wind>0&&T%4<=1) Color(1);if(Wind>0&&T%4>=2) Color(0);if(Thun>0&&T%4<=1) Color(1);if(Thun>0&&T%4>=2) Color(6);
    if(X>=17&&X<=19) {Setpos(X-1,Y);cout<<"●";Setpos(X,Y-1);cout<<"━/";if(T%10<3) Setpos(X+1,Y-1),cout<<"┛╲";else if(T%10<6) Setpos(X+1,Y-1),cout<<"┦ ";else Setpos(X+1,Y-1),cout<<"╯>";if(Wind>0&&T%3==0) Setpos(X+1,Y-1),cout<<"┛╲";else if(Wind>0&&T%3==1) Setpos(X+1,Y-1),cout<<"┦ ";else if(Wind>0&&T%3==2)Setpos(X+1,Y-1),cout<<"╯>";}else if(X<=23&&X>=21) {Setpos(X+1,Y);cout<<"●";Setpos(X,Y-1);cout<<"━\\";if(T%10<3) Setpos(X-1,Y-1),cout<<"┓╱";else if(T%10<6) Setpos(X-1,Y-1),cout<<"┪ ";else Setpos(X-1,Y-1),cout<<"╮>";if(Wind>0&&T%3==0) Setpos(X-1,Y-1),cout<<"┓╱";else if(Wind>0&&T%3==1) Setpos(X-1,Y-1),cout<<"┪ ";else if(Wind>0&&T%3==2)Setpos(X-1,Y-1),cout<<"╮>";}else if(X>23) {Setpos(X,Y-1);cout<<"━ ●";Setpos(X-1,Y-0.5),cout<<"│>";}else if(X<17&&Upt!=0) {Setpos(X,Y-1);cout<<"━ ●";Setpos(X+1,Y-1.5),cout<<"╱ >";}else if(X<17) {Setpos(X,Y-1);cout<<"━ ●";Setpos(X+1,Y-0.5),cout<<"│>";}if(Thun>0) {Setpos(X-2,Y-1),cout<<"▄▄";Setpos(X+2,Y-1),cout<<"▄▄";Setpos(X,Y+2),cout<<"▌";Setpos(X,Y-2.5),cout<<"▌";Setpos(X-1,Y+1),cout<<"█";Setpos(X+1,Y+1),cout<<"█";Setpos(X-1,Y-2),cout<<"█";Setpos(X+1,Y-2),cout<<"█";}if(Magne>0&&T%7<2)Setpos(X,Y),Color(5),cout<<"★";if(Wind>1) {if(T%6<2)Color(1);else Color(0);if(T%8<=1){Setpos(X+1,Y-5);cout<<"----  --";Setpos(X,Y-5);cout<<"-  --- -";Setpos(X-1,Y-5);cout<<"--- - --";}else if(T%8<=3) {Setpos(X+1,Y-5);cout<<"------  ";Setpos(X,Y-5);cout<<" --  ---";Setpos(X-1,Y-5);cout<<"----- - ";}else if(T%8<=5) {Setpos(X+1,Y-5);cout<<"  ------";Setpos(X,Y-5);cout<<"-- --  -";Setpos(X-1,Y-5);cout<<"- ----- ";}else if(T%8<=7) {Setpos(X+1,Y-5);cout<<"--  ----";Setpos(X,Y-5);cout<<" --- -- ";Setpos(X-1,Y-5);cout<<"- - ----";}}if(Water!=0) {Color(1);if(T%20<5){Setpos(X+2,Y-3);cout<<"■";Setpos(X+1,Y-3.5);cout<<"■";Setpos(X-1,Y-2.5);cout<<"■";Setpos(X-2,Y-3);cout<<"■";}else if(T%20<10||T%20>=15) {Setpos(X+2,Y-3);cout<<"■";Setpos(X,Y-4);cout<<"■■";Setpos(X-2,Y-3);  cout<<"■";}else if(T%20<15) {Setpos(X+2,Y-3.5);cout<<"■";Setpos(X+1,Y-3);cout<<"■";Setpos(X-1,Y-3.5);cout<<"■";Setpos(X-2,Y-3);cout<<"■";}}if(Fire!=0) {if(T%6<3)Color(4);else Color(5);if(Fir>=1)Setpos(X,Y+1),cout<<"●";if(Fir>=2)Setpos(X+1,Y),cout<<"●";if(Fir>=3)Setpos(X-1,Y-1),cout<<"●";}
    }
    if(a==1||a==3) {
    if(B[b].what==1){Nor;Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].How<=1) Color(13);else Color(4);cout<<"●";if(a==1) Pan(1,B[b].x,B[b].y,b);}}
    if(B[b].what==2) {Nor;Setpos(B[b].x-1,B[b].y-1);if(ti(B[b].x-1)==20)cout<<"======";else cout<<"      ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";Setpos(B[b].x+1,B[b].y-1);if(ti(B[b].x+1)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);Color(5);if(B[b].How==0){Setpos(B[b].x-1,B[b].y),cout<<"↑";Setpos(B[b].x,B[b].y-1),cout<<"←┼ →";Setpos(B[b].x+1,B[b].y),cout<<"↓";}else if(B[b].How==1) {Setpos(B[b].x-1,B[b].y-1),cout<<"↖  ↗";Setpos(B[b].x,B[b].y),cout<<"╳";Setpos(B[b].x+1,B[b].y-1),cout<<"↙  ↘";} if(a==1) Pan(2,B[b].x,B[b].y,b);}}
    if(B[b].what==3||B[b].what==5) {Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;Setpos(B[b].x,B[b].y);if(B[b].How==1) Color(5);else Color(4);cout<<"◎";}}
    if(B[b].what==4) {Nor;Setpos(B[b].x,fmax((float)0,B[b].y-8));if(ti(B[b].x)==20){for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"==";}else {for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"  ";}if(B[b].life!=0) {B[b].y-=B[b].vy;Setpos(B[b].x,fmax((float)0,B[b].y-8));Color(6); for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"═"; if(a==1) Pan(4,B[b].x,B[b].y,b);}}
    if(B[b].what==6||B[b].what==8||B[b].what==9) {Nor;Setpos(B[b].x-1,B[b].y);if(ti(B[b].x)-1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x+1,B[b].y);if(ti(B[b].x)+1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;Setpos(B[b].x,B[b].y-1);if(B[b].what==6){if(B[b].How<=1) Color(1); else Color(6);}if(B[b].what==9) {if(B[b].How<=1) Color(4); else Color(8);}if(B[b].what==8)Color(5);Setpos(B[b].x-1,B[b].y);cout<<"︹";Setpos(B[b].x+1,B[b].y);cout<<"︺";Setpos(B[b].x,B[b].y-1);if(B[b].How%2==1) cout<<"〔●〕"; else cout<<"﹝○﹞"; if(a==1) Pan(6,B[b].x,B[b].y,b);}}
    if(B[b].what==7) {Nor;Setpos(B[b].x,B[b].y);if(B[b].How<0) for(int i=19;i>=20+B[b].How;i--) {Setpos(i,B[b].y);cout<<"  ";}if(B[b].How>0) for(int i=21;i<=20+B[b].How;i++) {Setpos(i,B[b].y);cout<<"  ";}if(B[b].life!=0) {B[b].y-=B[b].vy;if(B[b].How<0) for(int i=19;i>=20+B[b].How;i--) {Setpos(i,B[b].y);cout<<"║"; if(a==1) Pan(7,i,B[b].y,b);}if(B[b].How>0) for(int i=21;i<=20+B[b].How;i++) {Setpos(i,B[b].y);cout<<"║"; if(a==1) Pan(7,i,B[b].y,b);}}}
    if(B[b].what==10||B[b].what==11||B[b].what==12) {Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){B[b].x-=B[b].vx;B[b].y-=B[b].vy;if(B[b].How==1){B[b].vy-=0.2;}else B[b].vx-=0.35;if(B[b].x>=25) B[b].x=25,B[b].vx*=-0.8;if(B[b].what==11&&B[b].y<=1) B[b].y=1,B[b].vy*=-1;if(B[b].what==12&&B[b].y<=1) B[b].y=1,B[b].vx=0,B[b].vy=-0.5,B[b].How=1;Setpos(B[b].x,B[b].y);if(B[b].what==11)Color(1);else if(B[b].what==12)Color(5);else Color(0);if(B[b].t%4<2)cout<<"▃";else cout<<"▍";if(a==1) Pan(B[b].what,B[b].x,B[b].y,b);}}
    if(B[b].what>=13&&B[b].what<=17) {Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"====";else cout<<"    ";if(B[b].life!=0){B[b].x-=B[b].vx;B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].what==14) Color(1);else if(B[b].what==15) Color(4);else if(B[b].what==16) Color(5);else if(B[b].what==17) Color(3);else Color(2);cout<<"●";if(B[b].what==14)cout<<"*";if(B[b].what==15)cout<<"";if(B[b].what==16)cout<<"<";if(B[b].what==17)cout<<"X";} if(a==1) Pan(1,B[b].x,B[b].y,b);}
    if(B[b].what==98&&B[b].life!=0) {B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(ti(B[b].x==20))cout<<"==";else cout<<"  ";if(B[b].y<=3)B[b].life=0;}
    if(B[b].what>=99) {if(B[b].y<=3)B[b].life=0;if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);Color(5);if(B[b].what==99)cout<<"█";if(B[b].what>=100&&B[b].what<200){if(B[b].what%5==0)cout<<"胎";if(B[b].what%5==1)cout<<"神";if(B[b].what%5==2)cout<<"太";if(B[b].what%5==3)cout<<"帅";if(B[b].what%5==4)cout<<"了";}if(B[b].what>=200&&B[b].what<300) {if(B[b].what%6==0)cout<<"神";if(B[b].what%6==1)cout<<"级";if(B[b].what%6==2)cout<<"胎";if(B[b].what%6==3)cout<<"神";if(B[b].what%6==4)cout<<"之";if(B[b].what%6==5)cout<<"光";}if(B[b].what>=300&&B[b].what<400) {if(B[b].what%8==0)cout<<"颤";if(B[b].what%8==1)cout<<"抖";if(B[b].what%8==2)cout<<"吧";if(B[b].what%8==3)cout<<"无";if(B[b].what%8==4)cout<<"能";if(B[b].what%8==5)cout<<"的";if(B[b].what%8==6)cout<<"人";if(B[b].what%8==7)cout<<"类";}if(B[b].what>=400&&B[b].what<500) {if(B[b].what%8==0)cout<<"还";if(B[b].what%8==1)cout<<"不";if(B[b].what%8==2)cout<<"快";if(B[b].what%8==3)cout<<"跪";if(B[b].what%8==4)cout<<"倒";if(B[b].what%8==5)cout<<"在";if(B[b].what%8==6)cout<<"朕";if(B[b].what%8==7)cout<<"前";}if(B[b].what>=500&&B[b].what<600) {if(B[b].what%8==0)cout<<"看";if(B[b].what%8==1)cout<<"懂";if(B[b].what%8==2)cout<<"这";if(B[b].what%8==3)cout<<"句";if(B[b].what%8==4)cout<<"话";if(B[b].what%8==5)cout<<"的";if(B[b].what%8==6)cout<<"是";if(B[b].what%8==7)cout<<"猪";} if(a==1) Pan(1,B[b].x,B[b].y,b);}}
    if(B[b].what==-1) {Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(Boss==0) B[b].life=0;else if(((Boss==1&&abs(B[b].x-Bx1)+abs(B[b].y-By1)<1.5)||(Boss==2&&abs(B[b].x-Bx2)+abs(B[b].y-By2)<1.5)||(Boss==3&&abs(B[b].x-Bx3)+abs(B[b].y-By3)<1.5)||(B[b].t==10))&&B[b].life==1) Bblo-=8+Lv*2,B[b].life=0;if(B[b].life!=0){if(Boss==1)B[b].x=B[b].x+(Bx1-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By1-B[b].y)/(10-B[b].t)*1.0;if(Boss==2)B[b].x=B[b].x+(Bx2-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By2-B[b].y)/(10-B[b].t)*1.0;if(Boss==3)B[b].x=B[b].x+(Bx3-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By3-B[b].y)/(10-B[b].t)*1.0;Setpos(B[b].x,B[b].y);Color(7);if(B[b].t%2==0) cout<<"+";else cout<<"×";}}
    if(B[b].what<=-2&&B[b].what>=-9) {Nor;Setpos(B[b].x-1,B[b].y);if(ti(B[b].x)-1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x+1,B[b].y);if(ti(B[b].x)+1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;if(B[b].what<=-3&&B[b].what>=-7){if(B[b].x<=7)B[b].x=7;if(B[b].x>=28)B[b].x=28;else if(B[b].x>=B[b].a+1&&B[b].How==1)B[b].How=0;else if(B[b].x<=B[b].a-1&&B[b].How==0)B[b].How=1;if(B[b].How==1&&B[b].vx>=-1)B[b].vx-=0.2;if(B[b].How==0&&B[b].vx<=1)B[b].vx+=0.2;}if(B[b].what==-2) Color(3);if(B[b].what==-3) Color(4);if(B[b].what==-4) Color(1);if(B[b].what==-5) Color(0);if(B[b].what==-6) Color(6);if(B[b].what==-7) Color(5);if(B[b].what==-8) Color(2);if(B[b].what==-9) Color(14);if(T%7<=1&&B[b].what==-5)Color(1);else if(T%7<=1)Color(0);Setpos(B[b].x-1,B[b].y);cout<<"︹";Setpos(B[b].x+1,B[b].y);cout<<"︺";Setpos(B[b].x,B[b].y-1);if(B[b].what==-2) cout<<"﹝镖﹞";if(B[b].what==-3) cout<<"﹝火﹞";if(B[b].what==-4) cout<<"﹝水﹞";if(B[b].what==-5) cout<<"﹝风﹞";if(B[b].what==-6) cout<<"﹝雷﹞";if(B[b].what==-7) cout<<"﹝磁﹞";if(B[b].what==-8) cout<<"﹝血﹞";if(B[b].what==-9) cout<<"﹝忍﹞"; if(a==1) Pan(-2,B[b].x,B[b].y,b);}}
    if(B[b].what==-11||B[b].what==-12) {Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){if(Magne>0)B[b].How++,B[b].x=B[b].x+(X-B[b].x)/(10-B[b].How)*1.0,B[b].y=B[b].y+(Y-B[b].y)/(10-B[b].How)*1.0;B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].what==-10) Color(5);if(B[b].what==-11) Color(7);if(T%7<=1)Color(0);cout<<"◆"; if(a==1) Pan(-1,B[b].x,B[b].y,b);}}
    if(B[b].what==-13) {Nor;Setpos(B[b].x,B[b].y-0.5);if(ti(B[b].x)==20)cout<<"===";else cout<<"   ";if(B[b].life!=0){if(B[b].a==13880086){if(Boss==0) B[b].life=0;else if(((Boss==1&&abs(B[b].x-Bx1)+abs(B[b].y-By1)<1.5)||(Boss==2&&abs(B[b].x-Bx2)+abs(B[b].y-By2)<1.5)||(Boss==3&&abs(B[b].x-Bx3)+abs(B[b].y-By3)<1.5)||(B[b].t==5))&&B[b].life==1) Bblo-=8+Lv*2,B[b].life=0;if(B[b].life!=0){if(Boss==1)B[b].x=B[b].x+(Bx1-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By1-B[b].y)/(5-B[b].t)*1.0;if(Boss==2)B[b].x=B[b].x+(Bx2-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By2-B[b].y)/(5-B[b].t)*1.0;if(Boss==3)B[b].x=B[b].x+(Bx3-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By3-B[b].y)/(5-B[b].t)*1.0;}}else {if(B[B[b].a].life==0) B[b].life=0;else if((abs(B[b].x-B[B[b].a].x)+abs(B[b].y-B[B[b].a].y)<1.5||(B[b].t==5))&&B[b].life==1) Exp+=2,B[B[b].a].life=B[b].life=0;if(B[b].life!=0){B[b].x=B[b].x+(B[B[b].a].x-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(B[B[b].a].y-B[b].y)/(5-B[b].t)*1.0;}}Setpos(B[b].x,B[b].y-0.5);if(T%6<3)Color(5);else Color(4);cout<<"●";}}
    }if(br<bl) {br=-1,bl=0;memset(B,0,sizeof(B));}Color(0);
    }
    void Move() {
    if(X<3) X=3;if(Y<1) Y=1,Vy=0;if(Y>29) Y=29,Vy=0;
    if(Ice!=0){X-=Vx/2.0;Y+=Vy/2.0;Vy=fmax(Vy-0.025,(float)0);if(T%6==0&&Up==0&&Y=Ding) Y-=0.25;if(Up==0&&Y<=Ding-1.25) Vy=0.25;if(Up==0&&Y>=Ding+1.25&&Wind==0) Vy=-0.25;if(Up==0&&Down==0&&Vx>0&&X<=18) Up=0,Down=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2&&X<=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up==0&&Down==1&&Vx<0&&X>=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up>0&&Down==0&&X>18) Up=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2) Vx+=0.175;else if(Up>0&&Upt==0) Vx-=0.175;else if(Up>0&&Upt>0) {Vx=fmax(Vx-0.125,(float)0);if(Upt==1&&T%2==0)Map(-1,0);if(T%2==0)Upt--;}}
    else {X-=Vx;Y+=Vy;Vy=fmax(Vy-0.05,(float)0);if(Wind==0){if(T%6==0&&Up==0&&Y=Ding) Y-=0.5;}else {if(T%2==0&&Up==0&&Y=Ding) Y-=0.5;}if(Up==0&&Y<=Ding-1.25) Vy=0.5;if(Up==0&&Y>=Ding+1.25&&Wind==0) Vy=-0.5;if(Up==0&&Down==0&&Vx>0&&X<=18) Up=0,Down=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2&&X<=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up==0&&Down==1&&Vx<0&&X>=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up>0&&Down==0&&X>18) Up=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2) Vx+=0.35;else if(Up>0&&Upt==0) Vx-=0.35;else if(Up>0&&Upt>0) {Vx=fmax(Vx-0.25,(float)0);if(Upt==1)Map(-1,0); Upt--;}}
    for(int i=bl;i<=br;i++) {
    if(B[i].what<98)if(B[i].x-B[i].vx<=5||B[i].x-B[i].vx>=30||B[i].y-B[i].vy<=0||B[i].y-B[i].vy>=30){B[i].life=0;Map(1,i);}
    for(int j=0;j<20;j++)if(B[i].what>0&&B[i].life!=0&&abs(B[i].x-I[j][0])<2&&B[i].y-I[j][1]<=2) {Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;B[i].life=0;Exp+=2;}
    if(B[i].t>=100)B[i].life=0;if(B[i].life==0&&i==bl) bl++;
    Map(1,i);if(B[i].life==0) continue;
    else {B[i].t++;
    if(B[i].what==1){if(B[i].y<=25&&B[i].How==0) B[i].vy=0,B[i].How=1;if(B[i].t==30) B[i].y+=1.5,B[i].How=2;if(B[i].t==35) B[i].vy=1.5,B[i].How=3;}
    if(B[i].what==2) {if(B[i].t%3==0) B[i].How=!B[i].How;}
    if(B[i].what==3||B[i].what==5) {if(B[i].what==3&&B[i].y<=20) B[i].vy=0;if(B[i].what==5&&B[i].y<=21) B[i].vy=0;if(B[i].t>30&&B[i].t%2==0) B[i].How=!B[i].How;if(B[i].what==5&&B[i].t<=30&&B[i].xX) B[i].vx=0.2;else B[i].vx=0;if(B[i].t==45){B[i].life=0;br++;B[br].what=4;B[br].x=B[i].x;B[br].y=32;B[br].vy=3;B[br].life=1;}}
    if(B[i].what==6||B[i].what==8||B[i].what==9) {if(B[i].vx<0.25&&B[i].vy<0.25&&B[i].t>=50){B[i].life=0;if(B[i].life==0&&i==bl) bl++;Map(1,i);break;}if(B[i].t%5==0) B[i].How=rand()%4;if(B[i].what==9) {if(B[i].t==7){X9:float xx=(rand()%41)/40.0,yy=(rand()%41)/40.0;if(xx<=0.5&&yy<=0.5) goto X9;for(int j=1;j<=4;j++){br++,B[br].what=9;B[br].t=11;B[br].x=B[i].x,B[br].y=B[i].y,B[br].vx=xx,B[br].vy=yy;if(j%2==0)swap(B[br].vx,B[br].vy),B[br].vy*=-1;if(j<=2)B[br].vx*=-1,B[br].vy*=-1;B[br].life=1;}B[i].life=0;}}if(B[i].what==8) {if(B[i].x>X&&B[i].vx<1.2) B[i].vx+=fmax((float)0,0.2-B[i].t/25);if(B[i].x-1.2) B[i].vx-=fmax((float)0,0.2-B[i].t/25);if(B[i].y>Y&&B[i].vy<1.2) B[i].vy+=fmax((float)0,0.2-B[i].t/25);if(B[i].y-1.2) B[i].vy-=fmax((float)0,0.2-B[i].t/25);}}
    if(B[i].what>=13&&B[i].what<=15&&B[i].How!=0) {if(B[i].x==B[i].How)B[i].vx=0,B[i].How=0;}
    if(B[i].what==16) {if(B[i].x=-1) B[i].vx-=0.2;else if(B[i].x>X&&B[i].vx<=1) B[i].vx+=0.2;}
    }
    if(B[i].life==1&&B[i].a==0&&B[i].what>0) {if(B[i].y>Y&&abs(B[i].x-X)<=3&&((B[i].x-X)*(B[i].x-X)+(B[i].y-Y)*(B[i].y-Y))
    }
    }
    void Guai(int R,int r) {
    if(R==-1){br++;B[br].what=-1;B[br].x=X+rand()%3-1;B[br].y=Y+rand()%3-1;B[br].life=1;}
    if(R<=-2&&R>=-11) {br++;B[br].what=R;B[br].x=B[br].a=r;B[br].y=29;if(R<=-3&&R>=-7)B[br].vx=-1;B[br].vy=1;B[br].life=1;}
    if(R==0) {br++;B[br].what=1;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==1) {br++;B[br].what=2;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==2||R==3) {br++;B[br].what=2*R-1;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==4) {br++;B[br].what=6;if(r<5)r=5;if(r>30)r=30;B[br].x=r;if(r==11||r==25) B[br].y=29-(rand()%20);else B[br].y=29;X4:B[br].vx=(rand()%21-10)/30.0;B[br].vy=(rand()%25)/30.0;if(B[br].vx<=0.8&&B[br].vy<=0.8)goto X4;int rx=rand()%50;if(rx==0) B[br].vx=0;B[br].life=1;}
    if(R==5) {br++;B[br].How=r;B[br].what=7;if(B[br].How<0) B[br].x=19;if(B[br].How>0) B[br].x=21;B[br].y=29;B[br].vy=1;B[br].life=1;}
    }
    void CpGuai(int R,float x,float y,float xx,float yy) {
    if(R==4){br++;B[br].what=6;B[br].x=x;B[br].y=y;B[br].vx=xx;B[br].vy=yy;B[br].life=1;}
    if(R==6||R==7||R==8) {br++;B[br].what=4+R;B[br].x=x;B[br].y=y;B[br].vx=xx;B[br].vy=yy;B[br].life=1;}
    }
    void MesGuai(int a,int rr) {
    int R=rand()%rr,r=-10086;
    if(R==0){if(a==1) r=(5+rand()%8)*2;if(a<=3&&a!=1) r=10+rand()%16;if(a==4) r=rand()%75-20;if(a==5) r=2+rand()%4;if(r!=-10086) Guai(a,r);}
    }
    void NorGuai(int a,int b) {
    if(a==1) {if(b==1||b==41) Guai(0,15),Guai(0,17),Guai(0,19);if(b==21||b==61) Guai(0,21),Guai(0,23),Guai(0,25);if(b==81) Guai(0,11),Guai(0,13),Guai(0,15),Guai(0,17),Guai(0,19);if(b==101||b==141) Guai(0,17),Guai(0,19),Guai(0,21),Guai(0,23),Guai(0,25);if(b==121) Guai(0,15),Guai(0,17),Guai(0,19),Guai(0,21),Guai(0,23);if(b>=160&&b<=260&&b%10==0) Guai(0,b/10-1);if(b>=270&&b<=370&&b%10==0) Guai(0,52-b/10);if(b>=460&&b<=560&&b%10==0) Guai(0,b/10-37),Guai(0,b/10-36),Guai(0,b/10-35);if(b>=570&&b<=670&&b%10==0) Guai(0,78-b/10),Guai(0,77-b/10),Guai(0,76-b/10);if(b>=760&&b<=960&&b%10==0) Guai(0,b/10-66),Guai(0,b/10-65),Guai(0,103-b/10),Guai(0,104-b/10);if(b>=1000&&b<=1300) MesGuai(0,30-b/50);}
    if(a==2) {if(b<=200&&b%30==1) {int r=rand()%4;if(r==1) r=0;for(int i=0;i<4;i++) if(i!=r) Guai(1,i*4+9);}if(b>200&&b<=220&&b%5==1) Guai(1,18);if(b>220&&b<=300&&b%7==1) Guai(1,b/5-26);if(b>350&&b<=370&&b%5==1) Guai(1,22);if(b>370&&b<=450&&b%7==1) Guai(1,96-b/5);if(b==461||b==501||b==541) Guai(1,13),Guai(1,17),Guai(1,21);if(b==481||b==521||b==561) Guai(1,17),Guai(1,21),Guai(1,25);if(b>=561&&b<=861&&b%20==1) Guai(1,b/40+5);if(b>=561&&b<=861&&b%20==11) Guai(1,35-b/40);if(b>=801&&b<=961&&b%15==1) Guai(1,20);if(b>=1000&&b<=1300) MesGuai(1,30-b/50);}
    if(a==3) {if(b==1||b==61) Guai(3,15),Guai(2,17),Guai(2,19);if(b==31||b==91) Guai(2,21),Guai(2,23),Guai(3,25);if(b>=120&&b<=220&&b%10==0) Guai(2,b/10+3);if(b>=240&&b<=340&&b%10==0) Guai(2,49-b/10);if(b>=360&&b<=460&&b%20==0) Guai(2,b/10-21),Guai(2,61-b/10);if(b>=480&&b<=580&&b%20==0) Guai(3,b/10-33),Guai(3,73-b/10);if(b>=600&&b<750&&b%30==0) {for(int i=0;i<5;i++) Guai(3,i*3+10);}if(b>=750&&b<830&&b%10==0) if(b<=200&&b%40==1) Guai(2,X);if(b>=830&&b<910&&b%20==0) Guai(2,X);if(b>=910&&b<980&&b%10==0) Guai(2,X);if(b>=1000&&b<=1300) MesGuai(rand()%2+2,40-b/50);}
    if(a==4) {if(b==1) CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,21,29,0,0.65);if(b==41) CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,18,29,0,0.65);if(b==81) CpGuai(4,5,20,-0.4,0.35),CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,30,20,0.25,0.4),CpGuai(4,21,29,0,0.65);if(b==121) CpGuai(4,5,20,-0.2,0.35),CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,30,20,0.4,0.4),CpGuai(4,18,29,0,0.65);if(b==161) CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,21,29,0,0.6),CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,18,29,0,0.65);if(b>=200&&b<=500&&b%40==1) {float r=0,rr;for(int i=1;i<=5;i++){X5:rr=0.7+(rand()%5)/10.0;if(rr==r)goto X5;r=rr;CpGuai(4,i*3+7,29,0,0.5+(rand()%50)/80.0);}}if(b>540&&b<=565&&b%5==1) CpGuai(4,5,8,-2,0.2);if(b>590&&b<=615&&b%5==1) CpGuai(4,30,8,1.5,0.2);if(b>640&&b<=665&&b%5==1) CpGuai(4,5,8,-1.5,0.3);if(b>690&&b<=715&&b%5==1) CpGuai(4,30,8,2,0.3);if(b>=750&&b<=950&&b%20==1) {float r=0,rr;for(int i=1;i<=3;i++){X6:rr=0.7+(rand()%5)/10.0;if(rr==r)goto X6;r=rr;CpGuai(4,i*5+7+(rand()%3),29,0,0.5+(rand()%50)/200.0);}}if(b>=1000&&b<=1300) MesGuai(4,5);}
    }
    void RandGood() {
    if(Biao>0){Biao--;Guai(-1,0);}
    if(Gd[1]==0) {Gd[1]=rand()%1000+1;if(Win==7)Gd[1]=10086;Gd[3]=rand()%16+8;}
    else if(Gd[1]<=5) {Guai(-2-Gd[1],Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=20&&Gd[1]<27) {Guai(-8,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=30&&Gd[1]<37) {Guai(-9,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=40&&Gd[1]<70) {Gd[2]++;if(Gd[2]%2==1)Guai(-10,Gd[3]);if(Gd[2]>=9)memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=70&&Gd[1]<100) {Gd[2]++;if(Gd[2]%2==1)Guai(-11,Gd[3]);if(Gd[2]>=9)memset(Gd,0,sizeof(Gd));}
    else if(Boss!=0&&Gd[1]>=450&&Gd[1]<=500) {Guai(-2,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else Gd[1]=0;
    for(int i=0;i<20;i++) {if(I[i][0]==-1) continue;Setpos(I[i][0],I[i][1]);Color(0);if(I[i][0]==20) cout<<"===";else cout<<"   ";I[i][1]++;if(I[i][0]>=28||I[i][0]<=0||I[i][1]>=29) I[i][0]=I[i][1]=-1;else Color(1),Setpos(I[i][0],I[i][1]),cout<<"■";Color(0);}
    }
    void Panboss(int bx,int by) {
    float Nox[4],Noy[4];Nox[0]=X,Noy[0]=Y;
    if(Down==1&&X==22) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    else if(Down==2) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;
    else if(Down==1||X<18) Nox[1]=X-1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;
    else Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    for(int i=0;i<3;i++){if((Boss==1||Boss==6)&&Wind==0&&Thun==0&&abs(Nox[i]-bx)<1&&abs(Noy[i]-by)<1&&Bgo1[4]==0) Blo-=20,Bgo1[4]=1,Killb=20,Kill=1;if((Boss==2||Boss==6)&&Wind==0&&Thun==0&&abs(Nox[i]-bx)<1&&abs(Noy[i]-by)<1&&Bgo2[8]==0) Blo-=20,Bgo2[8]=1,Killb=20,Kill=1;}
    }
    void Boss1() {
    for(int j=0;j<20;j++)if(abs(Bx1-I[j][0])<2&&By1-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    if(Bbr==Bbl&&Bbr!=0) Bbr=Bbl=0;
    for(int i=1;i<=3+(Bbl-Bbr)/5;i++)if(Bbr<Bbl) {Setpos(Bway[Bbr][0],Bway[Bbr][1]);if(Bway[Bbr][0]==20) cout<<"==";else cout<<"  ";Bbr++;}
    if(Bwhat1==5) {int bx,by;Color(5);for(int i=0;i[10;i++){bx=Bx1-i*Bvx1/10.0;by=By1-i*Bvy1/10.0;Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;}Color(0);}
    Bx1-=Bvx1;By1-=Bvy1;
    if(Bwhat1==0) {X2:Bwhat1=rand()%7;if(Bwhat1==2||Bwhat1==3){if(By1<=10||By1](10;i++)%7Bbx=Bx1-i*Bvx1/10.0;by=By1-i*Bvy1/10.0;Setpos(bx,by),cout%3C%3C%22%E2%96%88%22;Bbl++;Bway%5BBbl%5D%5B0%5D=bx;Bway%5BBbl%5D%5B1%5D=by;%7DColor(0);%7D%0ABx1-=Bvx1;By1-=Bvy1;%0Aif(Bwhat1==0)%7BX2:Bwhat1=rand()%257;if(Bwhat1==2%7C%7CBwhat1==3)%7Bif(By1%3C=10%7C%7CBy1)25) goto X2;}if(Bwhat1==4) {if(By1<=15||Bx1<20) goto X2;Bgo1[2]=Bx1;Bgo1[3]=By1-1;}if(Bwhat1==5) {X0:Bgo1[3]=rand()%4+1;Bvx1=(rand()%101)/20.0;Bvy1=(rand()%101)/20.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(abs(Bvx1)+abs(Bvy1)<=3||Out1)goto X0;}if(Bwhat1==6) {if(By1<=17||By1>25) goto X2;}}
    if(Bwhat1==1) {Bgo1[1]++,Bgo1[2]++;int R=rand()%(5-Bgo1[1]),r=rand()%(10-Bgo1[2]);if(Out1) R=0;if(R==0) {int vx=Bvx1,vy=Bvy1;Bgo1[1]=0;Bvx1=(rand()%101-20)/50.0;Bvy1=(rand()%101-20)/50.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(Out1) r=0;} if(r==0) Chang1 }
    if(Bwhat1==2) {Bgo1[1]++;if(Bgo1[1]>6){Bvy1=-0.3;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=6;X3:B[br].vx=(rand()%21-10)/40.0;B[br].vy=(rand()%25)/30.0;if(B[br].vx<=0.8&&B[br].vy<=0.8)goto X3;int rx=rand()%50;if(rx==0) B[br].vx=0;B[br].life=1;}if(Bgo1[1]>8) Chang1}
    if(Bwhat1==3) {Bgo1[1]++;if(Bgo1[1]>6&&Bgo1[1]%3==0){Bvy1=-0.3;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=8;B[br].life=1;}if(Bgo1[1]>15) Chang1}
    if(Bwhat1==4) {Bgo1[1]++;if(Bgo1[1]<=8){Setpos(Bgo1[2],Bgo1[3]);if(Bgo1[1]==1)cout<<" ";else if(Bgo1[1]>1&&Bgo1[2]==20) cout<<"==";else cout<<"  ";Bgo1[2]--;Setpos(Bgo1[2],Bgo1[3]);int r=rand()%4;if(r%2==0) Color(6);else Color(9);if(r<2) cout<<") ";else cout<<"】";Color(0);}if(Bgo1[1]==6) Bgo1[5]=X,Bgo1[6]=Y;if(Bgo1[1]==11) {Map(0,(bool)Kill);Setpos(Bgo1[5],Bgo1[6]+1),cout<<"  ";Setpos(Bgo1[5],Bgo1[6]-1),cout<<"  ";Setpos(Bgo1[5]+1,Bgo1[6]),cout<<"  ";Setpos(Bgo1[5]-1,Bgo1[6]),cout<<"  ";int bx,by,bvx=Bgo1[2]-Bgo1[5],bvy=Bgo1[3]-Bgo1[6];Color(6);int i=0;while(1){bx=Bgo1[2]-i*bvx/30.0;by=Bgo1[3]-i*bvy/30.0;if(bx<=5||bx>=30||by<0||by>=29) break;Panboss(bx,by);Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;i++;}Color(0);Map(-1,0);Chang1}}
    if(Bwhat1==5) {Bgo1[1]++,Bgo1[2]++;int R=rand()%(5-Bgo1[1]),r=rand()%(10-Bgo1[2]);if(Out1) R=0;if(R==0) {int vx=Bvx1,vy=Bvy1;Bgo1[1]=0;X1:Bvx1=(rand()%101-20)/20.0;Bvy1=(rand()%101-20)/20.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(abs(Bvx1)+abs(Bvy1)<=3||abs(Bvx1-vx)<=1||abs(Bvy1-vy)<=1)goto X1;if(Out1) r=0;} if(r==0) Chang1 }
    if(Bwhat1==6) {Bgo1[1]++;if(Bgo1[1]>6&&Bgo1[1]%10==0){By1-=1;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=9;X30:B[br].vy=1;B[br].life=1;}if(Bgo1[1]>31) Chang1}
    }
    void Boss2() {
    for(int j=0;j<20;j++)if(abs(Bx2-I[j][0])<2&&By2-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    if(Bbr==Bbl&&Bbr!=0) Bbr=Bbl=0;
    for(int i=1;i<=3+(Bbl-Bbr)/5;i++)if(Bbr<Bbl) {Setpos(Bway[Bbr][0],Bway[Bbr][1]);if(Bway[Bbr][0]==20) cout<<"==";else cout<<"  ";Bbr++;}
    Bx2-=Bvx2;By2-=Bvy2;
    if(Bwhat2==0) {X21:Bwhat2=rand()%7;if(Bwhat2==2){X31:for(int i=1;i<=3;i++){Bgo2[i*2+1]=rand()%28+1,Bgo2[i*2]=rand()%25+5;if((abs(Bgo2[i*2]-Bx2)<=2&&abs(Bgo2[i*2+1]-By2)<=2)||(abs(Bgo2[i*2]-X)<=2&&abs(Bgo2[i*2+1]-Y)<=2))goto X31;}if(Bgo2[2]==Bgo2[4]||Bgo2[2]==Bgo2[6]||Bgo2[6]==Bgo2[4]||Bgo2[5]==Bgo2[3]||Bgo2[3]==Bgo2[7]||Bgo2[5]==Bgo2[7]) goto X31;}if(Bwhat2==3) {Bgo2[2]=rand()%2;}if(Bwhat2==4||Bwhat2==5||Bwhat2==6) {Bvy2=-1.5;Bvx2=-0.5;}}
    if(Bwhat2==1) {Bgo2[1]++,Bgo2[2]++;int R=rand()%(5-Bgo2[1]),r=rand()%(30-Bgo2[2]);if(Out2) R=0;if(R==0) {int vx=Bvx2,vy=Bvy2;Bgo2[1]=0;Bvx2=(rand()%101-20)/50.0;Bvy2=(rand()%101-20)/50.0;if(Bgo2[3]<=2) Bvx2*=-1;if(Bgo2[3]%2==1) Bvy2*=-1;if(Out2) r=0;} if(r==0) Chang2 }
    if(Bwhat2==2) {Bgo2[1]++;float bx,by,bvx,bvy;if(Bgo2[1]<21){for(int i=1;i<=3;i++){bvx=Bgo2[i*2]-Bx2,bvy=Bgo2[i*2+1]-By2;if(Bgo2[1]<=10){Setpos(Bx2+(Bgo2[1]-1)*bvx/10.0,By2+(Bgo2[1]-1)*bvy/10.0);if(abs(Bx2+(Bgo2[1]-1)*bvx/10.0-20)<0.5)cout<<"==";else cout<<"  ";bx=Bx2+Bgo2[1]*bvx/10.0;by=By2+Bgo2[1]*bvy/10.0;Setpos(bx,by);}else Setpos(Bgo2[i*2],Bgo2[i*2+1]);int r=rand()%4;if(r%2==0) Color(3);else Color(10);if(r<=1) cout<<"×";else cout<<"+";Color(0);}}if(Bgo2[1]==21) {Map(0,(bool)Kill);Color(3);int j=0;for(int j=0;j<=30;j++)for(int i=1;i<=3;i++)for(int k=1;k<=4;k++){if(k==1) bvx=j,bvy=0;if(k==2) bvx=-j,bvy=0;if(k==3) bvx=0,bvy=j;if(k==4) bvx=0,bvy=-j;bx=Bgo2[i*2]+bvx,by=Bgo2[i*2+1]+bvy;if(bx<=5||bx>=30||by<0||by>=30) {continue;}Panboss(bx,by);Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;}Color(0);Map(-1,0);Chang2}}
    if(Bwhat2==3) {Bgo2[1]++;if(Bgo2[1]<=18){if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";if(Bgo2[1]%4==0)Bgo2[3]=!Bgo2[3];if(Bgo2[1]%6<3)Color(3);else Color(5);if(Bgo2[3]==0) Setpos(X-3,Y),cout<<"▼",Setpos(X+3,Y),cout<<"▲",Bgo2[4]=(int)(X+0.5),Bgo2[5]=(int)(Y+0.5);if(Bgo2[3]==1) Setpos(X,Y-3),cout<<" ",Setpos(X,Y+3),cout<<" ",Bgo2[4]=(int)(X+0.5),Bgo2[5]=(int)(Y+0.5);Color(0);}if(Bgo2[1]==18) {if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";}if(Bgo2[1]>18&&Bgo2[1]<=25) {Bgo2[3]=Bgo2[2];if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";if(Bgo2[1]%4<2)Color(3);else Color(5);if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"▼",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"▲";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3),cout<<" ",Setpos(Bgo2[4],Bgo2[5]+3),cout<<" ";Color(0);}if(Bgo2[1]==25) {if(Bgo2[2]==0){Color(3);for(int i=4;i<=29;i++){Setpos(i,Bgo2[5]),cout<<"█";Bbl++;Panboss(i,Bgo2[5]);Bway[Bbl][0]=i;Bway[Bbl][1]=Bgo2[5];}}if(Bgo2[2]==1) {Color(3);for(int i=0;i<=28;i++){Setpos(Bgo2[4],i),cout<<"█";Bbl++;Panboss(Bgo2[4],i);Bway[Bbl][0]=Bgo2[4];Bway[Bbl][1]=i;}}Chang2}}
    if(Bwhat2==4||Bwhat2==5||Bwhat2==6) {Bgo2[1]++;if(By2>27)Bvy2=0;if(Bx2>23)Bvx2=0;if(Bgo2[1]>13&&Bgo2[1]%3==0){float t=By2-Y,g=0.35;if(Boss==6) t/=2.0;CpGuai(Bwhat2+2,Bx2,By2,(Bx2-X)/t*1.0+(t-1)*g/2.0,1);}if(Bgo2[1]>20) Chang2}
    }
    void Boss3() {
    #define Bean br++;B[br].what=13;B[br].x=Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;
    for(int j=0;j<20;j++)if(abs(Bx3-I[j][0])<2&&By3-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    Bx3-=Bvx3;By3-=Bvy3;
    if(Bwhat3<=8) {if(Bx3>X&&Bvx3<1.5) Bvx3+=0.3;if(Bx3-1.5) Bvx3-=0.3;}
    if(Bwhat3==0) {X22:Bwhat3=rand()%12;if(Bwhat3==11&&abs(Bx3-20)<=1)goto X22;if(Bwhat3==11)Bgo3[2]=rand()%5;}
    if(Bwhat3==1) {Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3>=2&&Bwhat3<=6) {Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].what=11+Bwhat3;B[br].vy=0.5+(rand()%100)/80.0;if(Bwhat3==5)B[br].vy=B[br].vy*3/4.0;B[br].life=1;Chang3}}
    if(Bwhat3==7) {Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3==8) {Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3==9) {Bvx3=0;Bgo3[1]++;if(Bgo3[1]==6||Bgo3[1]==8){Bean}if(Bgo3[1]>=8)Chang3}
    if(Bwhat3==10) {Bvx3=0;Bgo3[1]++;if(Bgo3[1]==6||Bgo3[1]==8||Bgo3[1]==10||Bgo3[1]==12){Bean}if(Bgo3[1]>=12)Chang3}
    if(Bwhat3==11) {Bvx3=0;Bgo3[1]++;if(Bgo3[1]>=8)for(int i=1;i<=4;i++){br++;B[br].what=80+100*Bgo3[2]+Bgo3[1]*4+i;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=99;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=99;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}if(Bgo3[1]>=20) {for(int i=1;i<=4;i++){br++;B[br].what=98;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}Chang3}}
    }
    void Ball(int ball) {
    if(ball==1){int f=0;for(int i=1;i<=3;i++) {if(fir[i]==1) fir[i]--,Fir++;else if(fir[i]>1) fir[i]--;else f=i;}if(Fir>0&&f!=0) {br++;B[br].what=-13;B[br].x=X;B[br].y=Y+rand()%3-1;B[br].life=1;if(Dis<=30) B[br].a=Disb,B[Disb].a=1,fir[f]=20,Fir--;else if(Boss!=0) B[br].a=13880086,fir[f]=20,Fir--;else if(Dis!=13880087) B[br].a=Disb,B[Disb].a=1,fir[f]=20,Fir--;else if(Dis1!=13880087) B[br].a=Disb1,B[Disb1].a=1,fir[f]=20,Fir--;else B[br].life=0;Dis=Dis1=13880087;}}
    if(ball==2) {if(T%4==0)ib=(ib+1)%20,I[ib][1]=Y-2;if(T%16==0)I[ib][0]=X;if(T%16==4)I[ib][0]=X-1;if(T%16==8)I[ib][0]=X+1;if(T%16==12)I[ib][0]=X-2;if(T%12==9)I[ib][0]=X+2;if(Water==1){for(int i=X-6;i<=X+6;i++)ib=(ib+1)%20,I[ib][0]=i,I[ib][1]=Y-2-0.5*abs(i-X);}}
    if(ball==3) {if(Wind>5){if(Y=1) Vx=-5;if(Down==2) Vx=5;}if(Wind<5) {if(Y>Ding-1)Vy=-5;else Vy=0;if(Up>=1) Vx=-5;if(Down==2) Vx=5;}if(Wind==5) {if(Boss==2) Ding=12.25;else Ding=6.25;if(Boss!=0) Bblo-=16+Lv*4;if(Boss==1) Chang1 if(Boss==2) Chang2 if(Boss==3) Chang3 system("color 3F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");system("cls");for(int i=bl;i<=br;i++)if(B[i].what>0)B[i].life=0;Setpos(20,0);for(int i=1;i<=60;i++) printf("=");}}
    if(ball==4) {if(Thun==1){if(Boss!=0) Bblo-=16+Lv*4;if(Boss==1) Chang1 if(Boss==2) Chang2 if(Boss==3) Chang3 system("color 9F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");system("cls");for(int i=bl;i<=br;i++)if(B[i].what>0)B[i].life=0;Setpos(20,0);for(int i=1;i<=60;i++) printf("=");}}
    if(ball==5) {system("cls"); Color(5);Setpos(10,10);cout<<"新天赋!";Y:int rr=rand()%4+2;Setpos(12,10);if(rr==Ren) goto Y;if(rr==2)cout<<"瞬跳";if(rr==3)cout<<"空之舞";if(rr==4)cout<<"三段跳";if(rr==5)cout<<"反重力跳跃";Setpos(14,10);cout<<"当前天赋:";if(Ren==1)cout<<"小无敌";if(Ren==2)cout<<"瞬跳";if(Ren==3)cout<<"空之舞";if(Ren==4)cout<<"三段跳";if(Ren==5)cout<<"反重力跳跃";Setpos(16,10);cout<<"换否?(y/n)";G:char g=_getch();if(g=='y')Ren=rr;else if(g!='n')goto G;system("cls");Setpos(20,0);Color(0);for(int i=1;i<=60;i++) printf("=");}
    if(ball==6) {Color(4);for(float i=1;i<=Bblo;i+=Bblomax/20.0)cout<<"▄";Color(0);cout<<' '<
    if(ball==7) {Color(1);if(Win==7&&T%6<3)Color(3);for(float i=1;i<=Blo;i+=Blomax/20.0)cout<<"▄";Color(0);if(Win==7&&T%6<3)Color(3);printf(" %0.1f                              ",Blo);}
    }
    int main() {
    system("mode con cols=60 lines=37");CONSOLE_CURSOR_INFO cursor_info={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);srand((unsigned)time(NULL));
    Win=0;Ren=1;Lv=1;Blo=Blomax=100;Expmax=300;Hui=15;X=18,Y=6;
    ReStart:system("cls");memset(B,0,sizeof(B));memset(I,-1,sizeof(I));T=0;bl=0;br=-1;Upt=0;
    Start:Blo=Blomax;Ding=6.25;
    memset(Bgo1,0,sizeof(Bgo1));memset(Bgo2,0,sizeof(Bgo2));memset(Bgo3,0,sizeof(Bgo3));
    if(Win%2==0) T=0;if(Win%2==0&&D==0) {if(Win>0)Ball(5);Boss=0;lL:L=rand()%4+1;for(int i=0;i<=Win/2-1;i++)if(L==Ll[i]) goto lL;Ll[Win/2]=L;}if(Win%2==1&&D==0) {if(Win==7)Boss=6,T=0,Blomax+=100;else{bl:Boss=rand()%3+1;for(int i=0;i<=3;i++)if(Boss==Bl[i]) goto bl;}Bl[Win/2]=Boss;Bwhat1=Bwhat2=Bwhat3=0,Bx1=10,By1=20,Bx2=15,By2=20,Bx3=21,By3=20;system("color 4C");Sleep(20);system("color 0F");Map(0,1);Sleep(1000);}if(Win%2==1) {Bblomax=500+(Win/2)*500;Bblo=Bblomax;if(Boss==2) Ding=12.25;}
    while(1) {
    T++;
    if(Wind==0){if(GetAsyncKeyState(VK_LEFT)&0x8000) Vy=-(10-abs(Ding-Y)*1.5)/20.0;if(GetAsyncKeyState(VK_RIGHT)&0x8000) Vy=(10-abs(Ding-Y)*1.5)/20.0;}if(GetAsyncKeyState(VK_UP)&0x8000&&u1==0) {u1++;if(Down==1){Down=0;Up=0;if(Ren==2)Map(-1,0),Vx=0,X=18,Li=5;else Vx=7,Vy=0.3;}else if(Up==0&&Wind==0) {Down=0;Up=1;if(Ren==2)Map(-1,0),Vx=1,X=10,Map(0,3),Li=5;else Vx=2,Vy=0.1;}else if(Up==1&&Wind==0) {Down=0;Up=2;if(Ren==2)Map(-1,0),Vx=1,X-=6,Map(0,3),Li=5;else Vx=1.5,Vy=0.1;}else if(Ren==3&&Up==2&&Wind==0) {Down=0;Up=3;Vx=1;Vy=0.5;Upt=30;}else if(Ren==4&&Up==2&&Wind==0) {Down=0;Up=3;Vx=1.8;Vy=0.1;}}if(GetAsyncKeyState(VK_DOWN)&0x8000&&u2==0) {u2++;if(Down==1&&Ren==5){Down=2;Up=0;Vx=-1.7;}else {Down=1;Up=0;if(Ren==2)Map(-1,0),Vx=0,X=22,Map(0,3),Li=5;else {if(Upt!=0) Map(-1,0),Upt=0;Vx=-7;}}}if((GetAsyncKeyState(VK_UP)&0x8000) ?0:1) u1=0;if((GetAsyncKeyState(VK_DOWN)&0x8000) ?0:1) u2=0;if(kbhit()) {char g=_getch();if(g==' ') Sleep(100),Setpos(4,1),Sy++,system("pause");}if(Sy==1) Setpos(4,1),printf("                           "),Sy--;
    if(Drug==0) Blo=fmin((float)Blomax,Blo+Hui/100.0);else if(T%10==0)Blo--;if(T%20==0) {if(Kill!=0) Kill=0;if(Lvl!=0) Lvl=0;}if(Killb>0) Killb--;if(Li>0) Li--;if(Ice>0) Ice--;if(Drug>0) Drug--;if(Magne>0) Magne--;
    if(Fire>0) Ball(1),Fire--;if(Water>0) Ball(2),Water--;if(Wind>0) Ball(3),Wind--;if(Thun>0) Ball(4),Thun--;
    if(Boss==0) NorGuai(L,T%1500);RandGood();if(T%20==1)Exp++;
    if(T%50==1) {Exp++;system("cls");Setpos(20,0);Color(0);for(int i=1;i<=60;i++) printf("=");if(Win==0&&T<300){Setpos(4,6);cout<<"上下 跳跃/下翻,左右 些微移动(松手即返回)"; Setpos(6,6);cout<<"球可以开启特殊效果,Exp积满(300)可提升 Lv。";Setpos(8,6);cout<<"打败 7 波即胜利,打败 BOSS 有新天赋。";Setpos(10,15);cout<<"空格可以暂停。";}}
    Map(-1,0);
    if(Boss==1) Boss1();if(Boss==2) Boss2();if(Boss==3) Boss3();if(Boss==6) Boss1(),Boss2(),Boss3();
    Move();Map(0,(bool)Kill);Color(0);
    Setpos(1,1);Blo=fmin(Blo,(float)Blomax);if(Boss==0)cout<<"Blood: "<<(int)Blo<<"  ";Color(0);Setpos(1,9),cout<<"Death: "<<D<<"  ";Setpos(2,1);Exp=min(Exp,Expmax);if(Exp>=Expmax)Exp=0,Lv++,Lvl++,Hui++,Blomax+=5;if(Lvl>0)Color(5);cout<<"Lv: "<<Lv;Color(0);Setpos(2,9);cout<<"Exp: "<<Exp<<"  ";if(Boss>0) Setpos(3,1),cout<<"Blood     : ",Ball(7);if(Boss>0&&Boss!=6) Setpos(4,1),cout<<"Boss Blood: ",Ball(6);if(Boss==6) Setpos(1,9),printf("Time: %0.1f s  ",T/15.0);
    int speed=0;
    if(Win==0) speed=55;if(Win==1) speed=50;if(Win==2) speed=35;if(Win==3) speed=40;if(Win==4) speed=25;if(Win==5) speed=30;if(Win==6) speed=20;if(Win>=7) speed=17;
    if(Wind) speed/=2;Sleep(speed);
    if(Boss==3&&Bblo<=0) {for(int i=1;i<=4;i++){br++;B[br].what=98;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}}
    if((Win%2==0&&T>=1400)||(Win%2==1&&Bblo<=0)||(Win==7&&T>=450)||Blo<=0) {Map(-1,0);break;}
    }if(Blo<=0) {Sleep(1000);D++;system("color 7F");Setpos(15,11);Color(4);cout<<"GAME OVER...";Sleep(2000);goto ReStart;}else if(Win==6) {system("color 7F");Setpos(15,11);Color(4);cout<<"坚持30秒 !";Sleep(2000);Setpos(30,0);Win++;D=0;}else if(Win==7) {Sleep(1000);system("color 6E");Setpos(15,11);Color(5);cout<<"YOU WIN !";Sleep(2000);Setpos(30,0);return 0;}else Sleep(1000),Win++,D=0;goto Start;
    }
    -
    
    
  • 通过的题目

题目标签

语言基础
103
循环语句
59
搜索
39
选择语句
28
一维数组
27
其他
26
语言入门
24
竞赛
23
字符串
22
递归
21
NOIP
19
贪心
18
数据结构
17
字符数组
17
BFS
13
二维数组
13
递推
11
DFS
10
广度优先搜索
10
数学知识
9