#include<bits/stdc++.h>
#include<conio.h>
#include<stdio.h>
#include "windows.h"
using namespace std;

#define ll long long

const int MAXN=1e3+5;
string in;
char inc;
ll rin; 
string player_name;

ll dx[8]={1,0,-1,0,1,-1,1,-1};
ll dy[8]={0,1,0,-1,1,1,-1,-1};

ll _pow(int pow_,int number){
	ll ans=1;
	for(int i=1;i<=pow_;i++){
		ans*=number;
	}
	return ans;
}

void change_colour(int new_colour){
	if(new_colour==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY);
	if(new_colour==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
	if(new_colour==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_RED);
	if(new_colour==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN);
	if(new_colour==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
	if(new_colour==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_BLUE);
	if(new_colour==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
	if(new_colour==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_BLUE);
	if(new_colour==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN);
}

void print_colour(int new_colour){
	if(new_colour==0) printf("黑");
	if(new_colour==1) printf("红");
	if(new_colour==2) printf("橙");
	if(new_colour==3) printf("黄");
	if(new_colour==4) printf("绿");
	if(new_colour==5) printf("青");
	if(new_colour==6) printf("蓝");
	if(new_colour==7) printf("紫");
	if(new_colour==8) printf("白");
}

void print_der(ll base_x,ll base_y,ll purpose_x,ll purpose_y){
	if(base_x==purpose_x || base_y==purpose_y) printf("正");
	if(base_y<purpose_y) printf("东");
	if(base_y>purpose_y) printf("西");
	if(base_x<purpose_x) printf("南");
	if(base_x>purpose_x) printf("北");
	return;
}

void waiting(int x){
	int start = time(0),end = time(0);
	while(end - start < x) end = time(0);
	return;
}

ll pc_turn(ll base_num,ll per_a){
	if(per_a==0) return 0;
	if(base_num<=9999999999999999/per_a){
		return base_num*per_a/100;
	}
	else return base_num/100*per_a;
}

void print_percent(ll per_a,ll per_b){
	if(per_b==0){
		printf("00PC");
	}
	else if(per_a==per_b){
		change_colour(4);
		printf("++++");
		change_colour(8);
	}
	else{
		if(per_a<100000000000000){
			if(per_a*100/per_b<10) printf(" ");
			printf("%lldPC",per_a*100/per_b);
		}
		else{
			for(ll i=100/(per_b/per_a+1);i<=100/(per_b/per_a);i++){
				if(per_a*i>=per_b){
					if(i<10) printf(" ");
					printf("%lldPC",i);
					return;
				}
			}
			printf(" 0PC");
		}
	}
	return;
}//a/b

void e_num(ll e_num_kk){
	if(e_num_kk==0) {
		printf("  0 ");
		return;
	}
	ll e_num_kkp;
	ll e_num_i;
	for(ll i=1;i<=1000000000000;i*=1000){
		if(e_num_kk>=i && e_num_kk<i*1000){
			e_num_kkp=e_num_kk/i;
			e_num_i=i;
		}
	}
	if(e_num_kkp<10) printf("");
	else if(e_num_kkp<100) printf(" ");
	printf("%lld",e_num_kkp);
	if(e_num_kkp<10 && e_num_i>1) printf(".%lld",e_num_kk/(e_num_i/10)%10);
	if(e_num_kk<1000) printf(" ");
	else if(e_num_kk<1000000) printf("k");
	else if(e_num_kk<1000000000) printf("M");
	else if(e_num_kk<1000000000000) printf("B");
	else if(e_num_kk<1000000000000000) printf("T");
	return;
}

ll s_to_ll(string trri){
	ll trri_ans=0;
	ll trri_u=1;
	for(ll i=trri.length()-1;i>=0;i--){
		if(trri[i]>='0' && trri[i]<='9'){
			if(trri_u>=10000000000000000){
				return 0;
			}
			trri_ans+=(trri[i]-'0')*trri_u;
			trri_u*=10;
		}
	}
	return trri_ans;
}

ll lrand(ll youuuo){
//	srand(time(NULL));
	ll dwuhkhwad=0;
	dwuhkhwad+=(rand()%100)*10000000000;
//	srand(time(NULL));
	dwuhkhwad+=(rand()%100)*100000000;
//	srand(time(NULL));
	dwuhkhwad+=(rand()%100)*1000000;
//	srand(time(NULL));
	dwuhkhwad+=(rand()%100)*10000;
//	srand(time(NULL));
	dwuhkhwad+=(rand()%100)*100;
//	srand(time(NULL));
	dwuhkhwad+=rand()%100;
	if(1000000000000%youuuo>1000000000000-dwuhkhwad) return lrand(youuuo);
	return abs(dwuhkhwad%youuuo);
}
ll faster_lrand(ll youuuo){
	ll dwuhkhwad=0;
	dwuhkhwad+=(rand()%10000)*100000000;
//	srand(time(NULL));
	dwuhkhwad+=(rand()%10000)*10000;
//	srand(time(NULL));
	dwuhkhwad+=rand()%10000;
//	srand(time(NULL));
	if(1000000000000%youuuo>1000000000000-dwuhkhwad) return lrand(youuuo);
	return abs(dwuhkhwad%youuuo);
}

ll x_walk(string oytuiop){
	if(oytuiop=="a") return 0;
	if(oytuiop=="d") return 0;
	if(oytuiop=="s") return 1;
	if(oytuiop=="w") return -1;
	return 2;
}

ll y_walk(string oytuiop){
	if(oytuiop=="a") return -1;
	if(oytuiop=="d") return 1;
	if(oytuiop=="s") return 0;
	if(oytuiop=="w") return 0;
	return 2;
}

void die(){
	while(true){
		system("cls");
		change_colour(1);
		printf("你死了!!!\n");
		cin >> in;
	}
	return;
}//已弃用 

//境界构造
string lv_name[11];//大境界名
string llv_name[4];//小境界名

ll add[11]={1,3,10,40,200,1500,15000,300000,10000000,500000000,5000000000};//等级增幅 
// (废除)    ll ladd[4]={10,12,15,20};//小境界增幅  0 前期   1 中期   2 后期   3 巅峰 

ll broke[10]={5000,4000,3000,2000,1000,334,80,30,6,1};//突破瓶颈概率 n/10000 

ll bro_rock[11];//特殊物品:进阶石   突破至每个境界前期需要9个该境界升级石(有概率失败);突破至每个境界中期需要2个该境界升级石;突破至每个境界后期需要3个该境界升级石;突破至每个境界巅峰需要5个该境界升级石 

//掉落等级降低概率  n/10000
ll less_0[11]={10000,9000,7500,5000,3334,1250, 500, 160, 100,  40,   0};  //不降级
ll less_1[11]={    0,1000,2500,5000,6666,8750,2500, 840, 400, 160, 800};  //降一级
ll less_2[11]={    0,   0,   0,   0,   0,   0,7000,9000,9500,9800,9200};  //降两级 


void build_lv(){
	lv_name[0]="人"; 
	lv_name[1]="士";
	lv_name[2]="元";
	lv_name[3]="灵";
	lv_name[4]="王";
	lv_name[5]="皇";
	lv_name[6]="宗";
	lv_name[7]="尊";
	lv_name[8]="圣";
	lv_name[9]="帝";
	lv_name[10]="神";
	for(ll i=1;i<11;i++){
		bro_rock[i]=0;
	}
	return;
}


//生物构造

ll ani_mb;
string ani_name[MAXN];//生物名称 
ll ani_att[MAXN];//属性
ll att_mb;//属性个数 
string att_name[MAXN];//属性名 
ll ani_gat[MAXN];//聚集数量 
ll ani_dam[MAXN];//攻击力 
ll ani_dam_area[MAXN];//攻击范围 
ll ani_hp[MAXN];//血量
ll ani_hea[MAXN];//恢复力
ll ani_reh[MAXN];//治疗力
ll ani_spe[MAXN];//速度  0/1
ll ani_eng[MAXN];//初始仇恨度    当其小于0时,生物将试图逃跑  当其大于等于0且小于100时,生物将不会有反应   当其大于等于100时,生物会追着你 
ll ani_den[MAXN];//每被攻击一次增加仇恨值
ll ani_dan[MAXN];//当血量不足一半时突增仇恨度 
ll ani_live[MAXN];//生物适应地形
ll ani_rel[MAXN][20];//生物在该地形刷新概率  (综合所有生活在该地生物出生概率后决定)  j为等级 
ll ani_dgr[MAXN];//生物的仇恨范围 
ll ski_mb;//技能数 
ll ani_ski[MAXN][100];//生物技能数据  0代表没有该技能 
ll ani_v[MAXN];//生物被打中的概率 (综合其他生物被打中的概率后决定) 
string ski_name[100];//数据所属技能名称 
string ski_itd[100];//数据所属技能介绍 
ll ani_mski_mb[MAXN];//生物附带的主动技能个数 
ll ani_mski[MAXN][10];//生物附带的主动技能列表 
ll mski_mb;//主动技个数 
string mski_name[MAXN];//主动技名称
string mski_itd[MAXN];// 主动技介绍 
ll mski_cd[MAXN];//技能cd 

ll ani_drop_mb[MAXN];//掉落种类数量 
ll ani_drop[MAXN][100];//生物掉落  大于10000代表掉落的是等级物品  换算:(n-10000)/100   个位十位代表改变等级  20为0点   例:18就是跌落2级  21就是增长1级
ll ani_drop_rel[MAXN][100];//对应掉落概率   (n/10) /10000(一万)   个位数对应掉落是否有阶级增幅 0无 1有 
ll ani_drop_amo[MAXN][100];//掉落数量 
ll ani_get_mb[MAXN];//合成种类数量
ll ani_get[MAXN][100];//合成 大于10000代表掉落的是等级物品  换算:(n-10000)/100   个位十位代表等级  
ll ani_get_amo[MAXN][100];//合成数量 
ll ani_high_mb[MAXN];//晋级种类数量
ll ani_high[MAXN][100];//晋级 大于10000代表掉落的是等级物品  换算:(n-10000)/100   个位十位代表改变等级  20为0点   例:18就是跌落2级  21就是增长1级     *最终结果再加1000000000(十亿)代表其受到等级增幅 
ll ani_high_amo[MAXN][100];//晋级数量 
void build_print_skill(){
	ski_mb=0;
	for(ll i=0;i<100;i++){
		ski_name[i]="不存在该技能";
	}
	ski_mb++;
	ski_name[ski_mb]="圣之召唤";
	ski_itd[ski_mb]="每走一格在原位置上留下一个同级圣卫兵";
	ski_mb++;
	ski_name[ski_mb]="蛛网围城";
	ski_itd[ski_mb]="当你靠近它时,会在你周围生成毒蛛网";
	ski_mb++;
	ski_name[ski_mb]="蚀毒";
	ski_itd[ski_mb]="当它对你造成伤害时,会对你造成对应蚀毒伤害";
	ski_mb++;
	ski_name[ski_mb]="消逝";//4
	ski_itd[ski_mb]="它每回合会自己减少的血量";
	return;
}//技能介绍 

void build_mski(){
	mski_mb=0;
	for(ll i=0;i<MAXN;i++){
		mski_name[i]="不存在该技能";
	}
	mski_mb++;
	mski_name[mski_mb]="稻草人";
	mski_itd[mski_mb]="在你附近三格以内的草地上生成一个相应等阶的稻草人";
	mski_cd[mski_mb]=20;
	
	return;
}

void build_ani(){
	att_mb=0;
	att_name[att_mb]="无";//0
	att_mb++;
	att_name[att_mb]="黑暗";//1 
	att_mb++;
	att_name[att_mb]="光明";//2
	att_mb++;
	att_name[att_mb]="风";//3
	att_mb++;
	att_name[att_mb]="雷";//4
	att_mb++;
	att_name[att_mb]="土";//5
	att_mb++;
	att_name[att_mb]="木";//6
	att_mb++;
	att_name[att_mb]="水";//7
	att_mb++;
	att_name[att_mb]="火";//8
	att_mb++;
	att_name[att_mb]="邪恶";//9
	att_mb++;
	att_name[att_mb]="毁灭";//10
	
	ani_mb=0;
	for(ll i=0;i<MAXN;i++){
		ani_att[i]=0;
		ani_gat[i]=1;
		ani_dam[i]=0;
		ani_dam_area[i]=1; 
		ani_hp[i]=0;
		ani_hea[i]=0;
		ani_reh[i]=0;
		ani_spe[i]=1;
		ani_eng[i]=100;
		ani_den[i]=100;
		ani_dan[i]=100;
		ani_live[i]=0;
		ani_mski_mb[i]=0;
		for(ll j=0;j<=19;j++){
			ani_rel[i][j]=0;
		}
	    
	    ani_dgr[i]=0;
	    ani_v[i]=0;
	    for(ll j=0;j<100;j++){
	    	ani_ski[i][j]=0;
		} 
		
		ani_drop_mb[i]=0;
		ani_get_mb[i]=0;
	}
	
	ani_mb++;
	ani_name[ani_mb]=" 勇士 ";//	1
	ani_att[ani_mb]=0;
	ani_dam[ani_mb]=80;
	ani_hp[ani_mb]=600;
	ani_hea[ani_mb]=12; 
	ani_live[ani_mb]=3;
	ani_v[ani_mb]=10000;
	ani_drop_mb[ani_mb]=0;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=10;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=1;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=30;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10120;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=1000000001;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=10;
	 
	ani_mb++;
	ani_name[ani_mb]="暗纹虎";
	ani_att[ani_mb]=1;
	ani_dam[ani_mb]=125;
	ani_hp[ani_mb]=800;
	ani_hea[ani_mb]=0; 
	ani_live[ani_mb]=2;
	ani_rel[ani_mb][0]=10000;
	ani_rel[ani_mb][1]=4000;
	ani_rel[ani_mb][2]=2500;
	ani_rel[ani_mb][4]=500;
	ani_rel[ani_mb][5]=133;
	ani_rel[ani_mb][6]=13;
	ani_rel[ani_mb][7]=4;
	ani_dgr[ani_mb]=5;
	ani_v[ani_mb]=2000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=15001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10320;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10320;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10320;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=10200;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10220;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10515;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=1000000001;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=10;
		
	ani_mb++;
	ani_name[ani_mb]=" 圣灵 ";//3
	ani_att[ani_mb]=2;
	ani_dam[ani_mb]=66;
	ani_hp[ani_mb]=5800;
	ani_hea[ani_mb]=1000; 
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=10;
	ani_ski[ani_mb][1]=1;
	ani_v[ani_mb]=500;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=3300;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11220;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11320;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=100000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11420;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11420;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11420;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11520;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=1001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=11;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="圣卫兵";//4
	ani_att[ani_mb]=2;
	ani_dam[ani_mb]=100;
	ani_hp[ani_mb]=750;
	ani_hea[ani_mb]=50; 
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=15;
	ani_v[ani_mb]=20000;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]=" 翟蕤 ";//5
	ani_att[ani_mb]=6;
	ani_dam[ani_mb]=45;
	ani_hp[ani_mb]=1600;
	ani_hea[ani_mb]=10; 
	ani_live[ani_mb]=2;
	ani_rel[ani_mb][1]=4000;
	ani_rel[ani_mb][2]=500;
	ani_rel[ani_mb][4]=100;
	ani_rel[ani_mb][5]=33;
	ani_rel[ani_mb][6]=3;
	ani_rel[ani_mb][7]=1;
	ani_dgr[ani_mb]=5;
	ani_v[ani_mb]=4000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=2001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=10;	
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12520;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=75000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;	
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=10400;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=9;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10420;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=1000000001;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=30;
	ani_mb++;
	ani_name[ani_mb]="地玄菟";
	ani_att[ani_mb]=6;
	ani_dam[ani_mb]=60;
	ani_hp[ani_mb]=200;
	ani_hea[ani_mb]=100; 
	ani_eng[ani_mb]=60;
	ani_live[ani_mb]=2;
	ani_rel[ani_mb][0]=1000;
	ani_rel[ani_mb][1]=2500;
	ani_rel[ani_mb][2]=300;
	ani_rel[ani_mb][3]=103;
	ani_rel[ani_mb][4]=20;
	ani_rel[ani_mb][5]=3;
	ani_dgr[ani_mb]=5;
	ani_v[ani_mb]=4000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=2001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=10;	
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10420;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=20000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;	
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="连叶草";//7
	ani_att[ani_mb]=6;
	ani_dam[ani_mb]=10;
	ani_hp[ani_mb]=100;
	ani_hea[ani_mb]=12; 
	ani_live[ani_mb]=2;
	ani_rel[ani_mb][0]=800;
	ani_rel[ani_mb][1]=1000;
	ani_rel[ani_mb][2]=12500;
	ani_rel[ani_mb][4]=500;
	ani_rel[ani_mb][5]=133;
	ani_rel[ani_mb][6]=10;
	ani_dgr[ani_mb]=1;
	ani_spe[ani_mb]=0;
	ani_v[ani_mb]=2000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10620;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=100000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10719;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=3000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10818;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10819;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10820;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12620;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=22000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="青铜卫";
	ani_att[ani_mb]=4;
	ani_dam[ani_mb]=250;
	ani_hp[ani_mb]=700;
	ani_hea[ani_mb]=0; 
	ani_live[ani_mb]=0;
	ani_rel[ani_mb][0]=10000;
	ani_rel[ani_mb][1]=5000;
	ani_rel[ani_mb][2]=1250;
	ani_rel[ani_mb][4]=500;
	ani_rel[ani_mb][5]=133;
	ani_rel[ani_mb][6]=100;
	ani_rel[ani_mb][7]=33;
	ani_dgr[ani_mb]=10;
	ani_v[ani_mb]=5800;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10920;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10920;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=10920;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11020;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=5000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11120;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=33000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11120;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=33000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11120;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=33000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="九眼蛛";
	ani_att[ani_mb]=1;
	ani_dam[ani_mb]=300;
	ani_hp[ani_mb]=1500;
	ani_hea[ani_mb]=120; 
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=10;
	ani_eng[ani_mb]=50;
	ani_v[ani_mb]=10000;
	ani_ski[ani_mb][2]=1;
	ani_ski[ani_mb][3]=80; 
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=70001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=10;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11620;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=100000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11720;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=15000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11820;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11820;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11820;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=11920;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=1100;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="毒蛛网";//10
	ani_att[ani_mb]=0;
	ani_dam[ani_mb]=80;
	ani_hp[ani_mb]=600;
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=1;
	ani_v[ani_mb]=10000;
	ani_ski[ani_mb][3]=20; 
	ani_spe[ani_mb]=0; 
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12020;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=30000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12020;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=30000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12020;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=30000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="虎皮蛮兵";//11
	ani_att[ani_mb]=0;
	ani_dam[ani_mb]=240;
	ani_hp[ani_mb]=1000;
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=1;
	ani_v[ani_mb]=25000;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=10300;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=10100;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10320;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12120;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	ani_mb++;
	ani_name[ani_mb]="地精医师";//12
	ani_att[ani_mb]=5;
	ani_dam[ani_mb]=20;
	ani_hp[ani_mb]=900;
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=1;
	ani_v[ani_mb]=35000;
	ani_reh[ani_mb]=45;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=10900;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=3;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=12300;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=12400;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=17;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=10920;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=3;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12220;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12320;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12420;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=7;
	ani_mb++;
	ani_name[ani_mb]="稻草人";//13
	ani_att[ani_mb]=0;
	ani_dam[ani_mb]=0;
	ani_hp[ani_mb]=1500;
	ani_live[ani_mb]=2;
	ani_dgr[ani_mb]=1;
	ani_eng[ani_mb]=1;
	ani_den[ani_mb]=0;
	ani_v[ani_mb]=10000; 
	ani_ski[ani_mb][4]=150;
	ani_spe[ani_mb]=0; 
		ani_mski_mb[ani_mb]++;
		ani_mski[ani_mb][ani_mski_mb[ani_mb]]=1;
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=12400;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=7;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=12500;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=19;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12520;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=5;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=12620;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=16;
	ani_mb++;
	ani_name[ani_mb]="魔魂鲨";
	ani_gat[ani_mb]=3;
	ani_att[ani_mb]=7;
	ani_dam[ani_mb]=370;
	ani_hp[ani_mb]=1200;
	ani_hea[ani_mb]=50; 
	ani_live[ani_mb]=7;
	ani_rel[ani_mb][0]=10000;
	ani_rel[ani_mb][1]=2500;
	ani_rel[ani_mb][2]=300;
	ani_rel[ani_mb][3]=103;
	ani_rel[ani_mb][4]=20;
	ani_rel[ani_mb][5]=3;
	ani_dgr[ani_mb]=15;
	ani_v[ani_mb]=12000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=50001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=3;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=2001;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=10;	
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
		ani_mb++;
	ani_name[ani_mb]=" 雷莲 ";//15
	ani_gat[ani_mb]=3;
	ani_att[ani_mb]=4;
	ani_dam[ani_mb]=570;
	ani_dam_area[ani_mb]=12;
	ani_hp[ani_mb]=1000;
	ani_hea[ani_mb]=45; 
	ani_live[ani_mb]=10;
	ani_dgr[ani_mb]=5;
	ani_v[ani_mb]=10000;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12720;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=100000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12720;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=10000;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;
		ani_drop_mb[ani_mb]++;
		ani_drop[ani_mb][ani_drop_mb[ani_mb]]=12820;
		ani_drop_rel[ani_mb][ani_drop_mb[ani_mb]]=700;
		ani_drop_amo[ani_mb][ani_drop_mb[ani_mb]]=1;	
	ani_get_mb[ani_mb]=0;
		ani_get_mb[ani_mb]++;
		ani_get[ani_mb][ani_get_mb[ani_mb]]=9;
		ani_get_amo[ani_mb][ani_get_mb[ani_mb]]=1;
	ani_high_mb[ani_mb]=0;
		ani_high_mb[ani_mb]++;
		ani_high[ani_mb][ani_high_mb[ani_mb]]=9;
		ani_high_amo[ani_mb][ani_high_mb[ani_mb]]=1;
	return;
}
//构造拥有战力
ll gar[50];//记录出战生物种类 
ll gar_lv[50];//记录出战生物等级 
ll gar_hp[50];//记录出战生物血量 
ll gar_cd[50][10];//记录出战生物技能cd 
ll ar[MAXN][20];//记录你拥有生物 
//inscription(铭文)
ll gar_ins_lv[50][21];//出战位铭文等级 
ll ins_mb;//铭文种类数
string ins_name[21];//铭文名称 
ll ins_high[21][1001];//铭文升级耗费升级点 
string ins_itd[21];//铭文效果介绍 

void build_ins(){
	ins_mb=0;
	ins_mb++;
	ins_name[ins_mb]="防御";
	for(ll i=1;i<1000;i++){
		ins_high[ins_mb][i]=2;
	}
	for(ll i=1;i<100;i++){
		ins_high[ins_mb][i*10]=5;
	}
	for(ll i=1;i<10;i++){
		ins_high[ins_mb][i*100]=20;
	}
	ins_high[ins_mb][1000]=60;
	ins_itd[ins_mb]="最大血量增加%X(X为该铭文等级)";
	ins_mb++;
	ins_name[ins_mb]="伤害";
	for(ll i=1;i<1000;i++){
		ins_high[ins_mb][i]=3;
	}
	for(ll i=1;i<100;i++){
		ins_high[ins_mb][i*10]=7;
	}
	for(ll i=1;i<10;i++){
		ins_high[ins_mb][i*100]=28;
	}
	ins_high[ins_mb][1000]=72;
	ins_itd[ins_mb]="伤害增加%X(X为该铭文等级)";
	ins_mb++;
	ins_name[ins_mb]="恢复";
	for(ll i=1;i<1000;i++){
		ins_high[ins_mb][i]=2;
	}
	for(ll i=1;i<100;i++){
		ins_high[ins_mb][i*10]=5;
	}
	for(ll i=1;i<10;i++){
		ins_high[ins_mb][i*100]=20;
	}
	ins_high[ins_mb][1000]=60;
	ins_itd[ins_mb]="自我恢复力增加%X(X为该铭文等级)";
	return;
}

void build_ar(){
	for(ll i=1;i<MAXN;i++){
		for(ll j=0;j<=10;j++){
			ar[i][j]=0;
		}
	}
	ar[1][0]=30;
	for(ll i=1;i<50;i++){
		gar[i]=0;
		gar_lv[i]=0;
		gar_hp[i]=1;
		for(ll j=1;j<10;j++){
			gar_cd[i][j]=0;
		}
		for(ll j=1;j<=ins_mb;j++){
			gar_ins_lv[i][j]=0;
		} 
	}
	return;
}




// 构建资源/信息 

ll ima_mb;//货币数量种类 
string ima_name[MAXN];//信息、资源名称
ll ima[MAXN];//该信息、资源量值
//带等级物品 
ll lv_ima_mb;
string lv_ima_name[MAXN]; 
ll lv_ima[MAXN][20];


/*交易*/ 
ll ex_mb;//交易数量 
ll ex_out[MAXN];//交易代价种类 (-n 代表 n阶源晶) 
ll ex_out_mb[MAXN];//交易代价数量
ll ex_in[MAXN];//交易物品种类  (-n 代表 n阶源晶) 
ll ex_in_mb[MAXN];//交易物品数量

ll get_life_xplace=665;//复活点X坐标
ll get_life_yplace=665;//复活点Y坐标 

void build_ima(){
	for(ll i=0;i<MAXN;i++){
		ima[i]=0;
		for(ll j=1;j<20;j++){
			lv_ima[i][j]=0;
		}
	}
	ima_mb=0;//初始化
	
	ima_mb++;
	ima_name[ima_mb]="下品灵石";//1
	ima_mb++;
	ima_name[ima_mb]="中品灵石";//2
	ima_mb++;
	ima_name[ima_mb]="上品灵石";//3
	ima_mb++;
	ima_name[ima_mb]="极品灵石";//4
	ima_mb++;
	ima_name[ima_mb]="基础感知力";//5
	ima[ima_mb]=3;
	ima_mb++;
	ima_name[ima_mb]="横坐标";//6
	ima[ima_mb]=665;
	ima_mb++;
	ima_name[ima_mb]="纵坐标";//7
	ima[ima_mb]=665;
	ima_mb++;
	ima_name[ima_mb]="可控位置";//8
	ima[ima_mb]=3;
	ima_mb++;
	ima_name[ima_mb]="万界禁湏";//9
	ima_mb++;
	ima_name[ima_mb]="显示模式";//10
	ima[ima_mb]=1;
	ima_mb++;
	ima_name[ima_mb]="圣魂珠";//11
	ima_mb++;
	ima_name[ima_mb]="显示附带效果";//12
	ima[ima_mb]=1;
	ima_mb++;
	ima_name[ima_mb]="等级";//13 
	ima[ima_mb]=1;
	ima_mb++;
	ima_name[ima_mb]="升级点";//14
	ima[ima_mb]=1;
	ima_mb++;
	ima_name[ima_mb]="经验值";//15
	ima[ima_mb]=1;
	
	
	
	lv_ima_mb=0;
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="残魂";
	lv_ima[lv_ima_mb][0]=3;
	lv_ima[lv_ima_mb][1]=1;
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="暗涌凝核";//2
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="暗纹虎皮";//3 
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="通心草";//4 
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="邪神之血";//5
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="连叶草籽";//6
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="草之结晶";//7
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="青草碎片";//8
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="古铜碎片";//9
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="守护之念";//10
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="鬼铜块";//11
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="神圣光辉";//12
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="圣之灵";//13
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="圣明石";//14
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="圣灵残骸";//15
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="九眼蛛遗骸";//16
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="恶魂之眼";//17
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="红金生质";//18
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="血红骨";//19 
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="剧毒蛛丝";//20 
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="蛮荒之血";//21
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="安德酒";//22
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="机械核心";//23
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="奇迹锈铁";//24
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="翟蕤筋";//25
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="连叶枯草";//26
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="天雷果";//27
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="雷电法则碎片";//28
	lv_ima_mb++;
	lv_ima_name[lv_ima_mb]="渡劫丹";//29
	return; 
} 

//构建建筑

ll building_mb; 
string building_name_a[MAXN];
string building_name_u[MAXN];
ll building_ani_mb[MAXN];//将更改的个数 
ll building_cha[MAXN];//该地周围更改后生物出生概率之和  -1为不更改  n/10000
ll building_ani[MAXN][100];//建筑周围生物刷新概率  building_ani[i][j]表示i建筑周围第j个将更改出生概率的生物种类
ll building_cre[MAXN][100];//更改后的概率 
ll building_re[MAXN];//该地刷新所有生物概率之和  n/10000(一万) 
ll building_ani_rel[MAXN][100];//该地可能出生的生物列表
ll building_ani_rel_an[MAXN];//生物列表数值之和 
ll building_ani_rel_mb[MAXN];//上一行的列表项数 
void build_building(){
	building_mb=-1;
	for(ll i=0;i<MAXN;i++){
		building_ani_mb[i]=0;
		for(ll j=0;j<100;j++){
			building_ani[i][j]=-1;
			building_cre[i][j]=0;
		} 
		building_cha[i]=-1;
		building_re[i]=100;
	}
	 
	building_mb++;
	building_name_a[building_mb]="      ";
	building_name_u[building_mb]="      ";//空格 0
	building_mb++;
	building_name_a[building_mb]="XXXXXX";
	building_name_u[building_mb]="XXXXXX";//障碍 1
	building_mb++;
	building_name_a[building_mb]="#-#--#";
	building_name_u[building_mb]="-#--#-";//草地 2
	building_re[building_mb]=250;
	building_mb++;
	building_name_a[building_mb]="||||||";
	building_name_u[building_mb]="||||||";//安全地 3
	building_mb++;
	building_name_a[building_mb]=" 神圣 ";
	building_name_u[building_mb]=" 之树 ";//神圣之树 4
		building_cha[building_mb]=3334;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=303;
		building_cre[building_mb][building_ani_mb[building_mb]]=100;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=304;
		building_cre[building_mb][building_ani_mb[building_mb]]=50;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=305;
		building_cre[building_mb][building_ani_mb[building_mb]]=35;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=306;
		building_cre[building_mb][building_ani_mb[building_mb]]=15;
	building_mb++;
	building_name_a[building_mb]=" 旅者 ";
	building_name_u[building_mb]=" 之屋 ";//复活点 5
	building_mb++;
	building_name_a[building_mb]="传灵塔";
	building_name_u[building_mb]="      ";//传灵塔 6 
	building_mb++;
	building_name_a[building_mb]="~ ~~~ ";
	building_name_u[building_mb]=" ~~  ~";//水 7
	building_re[building_mb]=50;
	building_mb++;
	building_name_a[building_mb]=" 九眼 ";
	building_name_u[building_mb]=" 蛛穴 ";//九眼蛛穴 8 
		building_cha[building_mb]=10000;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=901;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=902;
		building_cre[building_mb][building_ani_mb[building_mb]]=3;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=903;
		building_cre[building_mb][building_ani_mb[building_mb]]=2;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=904;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
	building_mb++;
	building_name_a[building_mb]=" 生物 ";
	building_name_u[building_mb]="研究所";// 9
	building_mb++;
	building_name_a[building_mb]=" $&* &";
	building_name_u[building_mb]="$ * &$";// 10雷池
	building_mb++;
	building_name_a[building_mb]="一阶雷";
	building_name_u[building_mb]="海之眼";// 11
		building_cha[building_mb]=10000;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1500;
		building_cre[building_mb][building_ani_mb[building_mb]]=10;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1501;
		building_cre[building_mb][building_ani_mb[building_mb]]=10;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1502;
		building_cre[building_mb][building_ani_mb[building_mb]]=5;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1503;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
	building_mb++;
	building_name_a[building_mb]="二阶雷";
	building_name_u[building_mb]="海之眼";// 12 
		building_cha[building_mb]=10000;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1503;
		building_cre[building_mb][building_ani_mb[building_mb]]=10;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1504;
		building_cre[building_mb][building_ani_mb[building_mb]]=5;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1505;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
	building_mb++;
	building_name_a[building_mb]="三阶雷";
	building_name_u[building_mb]="海之眼";// 13 
		building_cha[building_mb]=10000;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1505;
		building_cre[building_mb][building_ani_mb[building_mb]]=10;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1506;
		building_cre[building_mb][building_ani_mb[building_mb]]=5;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1507;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
		building_mb++;
	building_name_a[building_mb]="四阶雷";
	building_name_u[building_mb]="海之眼";// 11
		building_cha[building_mb]=10000;
		building_ani_mb[building_mb]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=200;
		building_cre[building_mb][building_ani_mb[building_mb]]=0;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1507;
		building_cre[building_mb][building_ani_mb[building_mb]]=10;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1508;
		building_cre[building_mb][building_ani_mb[building_mb]]=5;
		building_ani_mb[building_mb]++;
		building_ani[building_mb][building_ani_mb[building_mb]]=1509;
		building_cre[building_mb][building_ani_mb[building_mb]]=1;
	 
		
	building_ani_rel_mb[MAXN];//该地列表最新指针 
	for(ll i=0;i<=building_mb;i++){
		building_ani_rel_mb[i]=0;
	}
	//printf("%lld\n",ani_mb);
	for(ll i=1;i<=ani_mb;i++){
		//printf("xdcdcdcsdcsdcsdcs\n");
		for(ll j=0;j<11;j++){
			
			if(ani_rel[i][j]>0){
				
				building_ani_rel_mb[ani_live[i]]++;
				building_ani_rel[ani_live[i]][building_ani_rel_mb[ani_live[i]]]=i*100+j;
			}
		}
		
	}
	for(ll i=0;i<=building_mb;i++){
		building_ani_rel_an[i]=0;
		for(ll k=1;k<=building_ani_rel_mb[i];k++){
			building_ani_rel_an[i]+=ani_rel[building_ani_rel[i][k]/100][building_ani_rel[i][k]%100];
		}
	}
	return;
}





// 构建地图
ll mxl=1000,myl=1000;//地图大小 

ll mmap[MAXN][MAXN];//主地图   最大值:99999999999999最小值:-99999999999999 
ll mmap_hp[MAXN][MAXN];//记录主地图中生物血量 
ll mmap_en[MAXN][MAXN];//记录生物仇恨度 
 /*在此处添加地图数据包  QwQ*/