YUTU给大家肝出了最新版本,怪物回归,并且方块更新了,鼠标左右键是摧毁、放置方块,总之更新了系统。
有一个背包,但是放置方块还是只有圆石。
运行不了的请在编译器里打开 工具【T】==》编译选项【C】==》编译器,
然后底下有一个“□编译时加入以下命令”,点一下左边的方块,让它打钩,
然后在底下的输入栏输入:
-std=c++11
就可以了。
#include<bits/stdc++.h>//dev专属 VC不用
#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <ctime>
#include <stdlib.h>
#include <vector>
#include <unistd.h>
#include <tchar.h>
#include <fstream>
#include <sys/time.h>
#include<iostream>
#include<bits/stdc++.h>
#include<iomanip>
#include<string>
#include<cstdlib>
#include<ctime>
#include<windows.h>
#include<conio.h>
#include <wchar.h>
#include<fstream>
#include <mmsystem.h>
#include <fstream>
#include <stdlib.h>
#include <mmsystem.h>
#define qdo 262
#define qre 294
#define qmi 330 //q前缀为低音,1后缀为高音,s前缀为半音阶
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
void cout_sleep(char n[]){
for(int i=0;i<strlen(n);i++){
cout<<n[i];
if(n[i]!=' '){
Sleep(100);
}
}
}
void gs(long long x, long long y, string str)
{
for (long long i = 1; i <= x; i++)
cout << "\n";
for (long long i = 1; i <= y; i++)
cout << " ";
cout << str;
return;
}
//结构体与类提前声明
struct hl//行列
{
long long h, l;
};
//函数提前声明
bool axj(long long key);
hl sbwz(bool x, bool n);//鼠标位置
void ydgb(long long h, long long l);//移动光标到指定位置
void yanse(int n);//颜色
//常量
const long long ESC = 27,//电脑左上角的esc
Enter = 13,//回车
Tab = 9,//esc下面一些的tab
Shang = 38,//\、
Xia = 40,// |方向键
Zuo = 37,// |
You = 39,// /
Kong = ' ',//空格
z_sb = VK_LBUTTON,//鼠标左键
y_sb = VK_RBUTTON,//鼠标右键
Shift = VK_SHIFT,//上档
z_Shift = VK_LSHIFT,//左边的SHIFT
y_Shift = VK_RSHIFT,//右边的shift
Ctrl = VK_CONTROL,//控制
z_Ctrl = VK_LCONTROL,//左边的Ctrl
y_Ctrl = VK_RCONTROL,//右边的Ctrl
Alt = VK_MENU,//windows右边的alt
z_Alt = VK_LMENU,//左……
y_Alt = VK_RMENU,//右……(我不说也知道)
A = 'A',//这些就是字母
B = 'B',
C = 'C',
D = 'D',
E = 'E',
F = 'F',
G = 'G',
H = 'H',
I = 'I',
J = 'J',
K = 'K',
L = 'L',
M = 'M',
N = 'N',
O = 'O',
P = 'P',
Q = 'Q',
R = 'R',
S = 'S',
T = 'T',
U = 'U',
V = 'V',
W = 'W',
X = 'X',
Y = 'Y',
Z = 'Z';
// //结构体与类
class anniu//这个是设置按钮的
{
private:
short h_1, l_1, h_2, l_2, ys1, ys2;
string nr;
public:
void csh(short hh_1, short ll_1, short hh_2, short ll_2, string _nr, short _yanse1, short _yanse2);
bool gx_ax(bool f);
};
struct cdhs//存档结构体
{
void out(int n, string name);
void out(long long n, string name);
void out(bool n, string name);
void out(char n, string name);
void out(string n, string name);
void in(int& n, string name);
void in(long long& n, string name);
void in(bool& n, string name);
void in(char& n, string name);
void in(string& n, string name);
};
//成员函数
void anniu::csh(short hh_1 = 1, short ll_1 = 1, short hh_2 = 1, short ll_2 = 1, string _nr = " ", short _yanse1 = 240, short _yanse2 = 7)
{
h_1 = hh_1;
l_1 = ll_1;
h_2 = hh_2;
l_2 = ll_2;
ys1 = _yanse1;
ys2 = _yanse2;
nr = _nr;
return;
}
bool anniu::gx_ax(bool f = 1)
{
short h = sbwz(1, 1).h, l = sbwz(1, 1).l, t = -1;
if (h >= h_1 && h <= h_2 && l >= l_1 && l <= l_2)
{
yanse(ys2);
for (short i = h_1; i <= h_2; i++)
{
ydgb(i, l_1);
for (short j = l_1; j <= l_2; j++)
{
t++;
cout << nr[t];
}
}
if ((axj(z_sb) && (f == 1)) || (axj(y_sb) && (f == 0)))
{
return 1;
}
}
else
{
yanse(ys1);
for (short i = h_1; i <= h_2; i++)
{
ydgb(i, l_1);
for (short j = l_1; j <= l_2; j++)
{
t++;
cout << nr[t];
}
}
return 0;
}
}
void cdhs::out(int n, string name)//存档,以后更新时会用的,保存数值
{
ofstream cd(&name[0]);
cd << n;
cd.close();
return;
}
void cdhs::out(long long n, string name)
{
ofstream cd(&name[0]);
cd << n;
cd.close();
return;
}
void cdhs::out(bool n, string name)
{
ofstream cd(&name[0]);
cd << n;
cd.close();
return;
}
void cdhs::out(char n, string name)
{
ofstream cd(&name[0]);
cd << n;
cd.close();
return;
}
void cdhs::out(string n, string name)
{
ofstream cd(&name[0]);
cd << n;
cd.close();
return;
}
void cdhs::in(int& n, string name)
{
ifstream cd(&name[0]);
cd >> n;
cd.close();
return;
}
void cdhs::in(long long& n, string name)
{
ifstream cd(&name[0]);
cd >> n;
cd.close();
return;
}
void cdhs::in(bool& n, string name)
{
ifstream cd(&name[0]);
cd >> n;
cd.close();
return;
}
void cdhs::in(char& n, string name)
{
ifstream cd(&name[0]);
cd >> n;
cd.close();
return;
}
void cdhs::in(string& n, string name)
{
ifstream cd(&name[0]);
cd >> n;
cd.close();
return;
}
//函数
bool axj(long long key)
{
return (GetKeyState(key) < 0);
}
void bout(string n, long long s = 50, bool f = 0, char key = 13)//输出
{
for (long long i = 0; i < n.size(); i++)
{
if (f && GetKeyState(key) < 0)
{
cout << n.substr(i, n.size());
return;
}
cout << n[i];
Sleep(s);
}
return;
}
void gckdx(short h, short l)//设置窗口大小
{
string n = "mode con cols=", t = "";
while (l > 0)
{
t = t + char(l % 10 + '0');
l /= 10;
}
for (short i = t.size() - 1; i >= 0; i--)
{
n = n + t[i];
}
n = n + " lines=", t = "";
while (h > 0)
{
t = t + char(h % 10 + '0');
h /= 10;
}
for (short i = t.size() - 1; i >= 0; i--)
{
n = n + t[i];
}
system(&n[0]);
return;
}
void gckm(string n)//修改窗口名称
{
string t = "title ";
t += n;
system(&t[0]);
return;
}
hl sbwz(bool x = 1, bool n = 1)//鼠标位置
{
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
HWND h = GetForegroundWindow();
CONSOLE_FONT_INFO consoleCurrentFont;
hl hl;
POINT p;
if (x)
{
GetCursorPos(&p);
ScreenToClient(h, &p);
}
else
{
GetCursorPos(&p);
}
if (n)
{
GetCurrentConsoleFont(hOutput, FALSE, &consoleCurrentFont);
p.x /= consoleCurrentFont.dwFontSize.X;
p.y /= consoleCurrentFont.dwFontSize.Y;
}
hl.h = p.y + 1;
hl.l = p.x + 1;
return hl;
}
void yanse(int n)//颜色
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), n);
return;
}
void ycbj()//移除快速编辑模式
{
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin, mode);
return;
}
void ycgb()//隐藏光标
{
CONSOLE_CURSOR_INFO cursor;
cursor.bVisible = FALSE;
cursor.dwSize = sizeof(cursor);
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorInfo(handle, &cursor);
return;
}
void ydgb(long long h, long long l)//移动光标
{
COORD pos = { l - 1,h - 1 };
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut, pos);
return;
}
string name;
char yutu,fx,sj=60,sl[15][30];
int sdf1=8,sdf2=8,g=1,die,gw1=9,gw2=9,hp=10,dt[15][30],ghp=1;
int pai = 400,ban = 200,ting = 128;
int szt=0,gzt=0;
int slsh=0;
bool f=1;
int bjx,bjy;
// //合成
// int xz=5;
// bool tc=1;
// string q=" 空",w=" 空",e=" 空";//[][][]
// string a=" 空",s=" 空",d=" 空";//[][][]
// string z=" 空",x=" 空",c=" 空";//[][][]
void gotoxy(int x=0,int y=0)
{
COORD c;
c.X=x;
c.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c);
}
void _Clearscreen(int x,int y,int p){//清空坐标后p-1个字符(包括坐标上的字符)
gotoxy(x-1,y);
for(int i=1;i<=p;i++)cout<<' ';
}
void _Clearscreen(int p){//清空光标后p-1个字符(包括光标上的字符)
printf("\b");
for(int i=1;i<=p;i++)cout<<' ';
}
void _Clearscreen(bool flag=1){//清空屏幕
if(flag==1){//双缓冲
HANDLE hStdOut; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD count; DWORD cellCount; COORD homeCoords = { 0, 0 };
hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
if (hStdOut == INVALID_HANDLE_VALUE) return;
if (!GetConsoleScreenBufferInfo(hStdOut, &csbi)) return;
cellCount = csbi.dwSize.X *csbi.dwSize.Y;
if (!FillConsoleOutputCharacter(hStdOut, (TCHAR) ' ', cellCount, homeCoords, &count )) return;
if (!FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, cellCount, homeCoords, &count )) return;
SetConsoleCursorPosition(hStdOut, homeCoords);
}
else if(flag==0){//单缓冲
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coordScreen = {0, 0};
SetConsoleCursorPosition( hConsole, coordScreen );
}
}
const int row = 28; // YUTU说:这里是行数
const int col = 300; // YUTU说:这里是列数
int data1[row][col] ={{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 241, 86, 91, 241, 86, 91, 241, 36, 44, 241, 36, 44, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 66, 237, 28, 66, 242, 103, 111, 242, 103, 111, 238, 36, 44, 238, 36, 44, 243, 111, 110, 243, 111, 110, 240, 69, 66, 240, 69, 66, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 53, 60, 239, 53, 60, 240, 69, 76, 240, 69, 76, 238, 57, 64, 238, 57, 64, 242, 107, 111, 242, 107, 111, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 243, 111, 115, 238, 36, 44, 238, 36, 44, 243, 111, 104, 243, 111, 104, 240, 69, 57, 240, 69, 57, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 53, 60, 239, 53, 60, 240, 69, 76, 240, 69, 76, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 246, 158, 162, 246, 158, 162, 254, 251, 251, 254, 251, 251, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 43, 237, 28, 43, 250, 187, 194, 250, 187, 194, 243, 51, 58, 243, 51, 58, 239, 51, 58, 239, 51, 58, 255, 250, 240, 255, 250, 240, 246, 133, 120, 246, 133, 120, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 240, 83, 111, 240, 83, 111, 251, 203, 208, 251, 203, 208, 252, 218, 220, 252, 218, 220, 255, 255, 255, 255, 255, 255, 253, 235, 235, 253, 235, 235, 252, 214, 216, 252, 214, 216, 252, 214, 216, 252, 214, 216, 239, 51, 58, 239, 51, 58, 255, 245, 225, 255, 245, 225, 246, 124, 95, 246, 124, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 252, 232, 233, 252, 232, 233, 243, 108, 114, 243, 108, 114, 237, 28, 36, 237, 28, 36, 241, 73, 104, 241, 73, 104, 247, 151, 170, 247, 151, 170, 238, 42, 49, 238, 42, 49, 239, 51, 58, 239, 51, 58, 255, 250, 240, 255, 250, 240, 246, 133, 120, 246, 133, 120, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 245, 225, 255, 245, 225, 246, 124, 95, 246, 124, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 108, 114, 242, 108, 114, 253, 232, 233, 253, 232, 233, 238, 48, 67, 238, 48, 67, 247, 175, 197, 247, 175, 197, 242, 96, 102, 242, 96, 102, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 250, 240, 255, 250, 240, 246, 133, 120, 246, 133, 120, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 245, 225, 255, 245, 225, 246, 124, 95, 246, 124, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 244, 175, 227, 244, 175, 227, 252, 220, 225, 252, 220, 225, 246, 152, 161, 246, 152, 161, 238, 40, 48, 238, 40, 48, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 250, 240, 255, 250, 240, 246, 133, 120, 246, 133, 120, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 245, 225, 255, 245, 225, 246, 124, 95, 246, 124, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 250, 240, 255, 250, 240, 246, 133, 121, 246, 133, 121, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 245, 226, 255, 245, 226, 246, 125, 97, 246, 125, 97, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 96, 102, 242, 96, 102, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 238, 46, 56, 238, 46, 56, 252, 223, 238, 252, 223, 238, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 34, 42, 237, 34, 42, 246, 136, 140, 246, 136, 140, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 254, 255, 255, 254, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 34, 42, 237, 34, 42, 246, 136, 140, 246, 136, 140, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 30, 42, 237, 30, 42, 242, 113, 146, 242, 113, 146, 250, 194, 196, 250, 194, 196, 240, 60, 67, 240, 60, 67, 237, 28, 36, 237, 28, 36, 246, 146, 150, 246, 146, 150, 252, 223, 224, 252, 223, 224, 242, 89, 95, 242, 89, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 238, 40, 48, 238, 40, 48, 248, 181, 184, 248, 181, 184, 250, 194, 196, 250, 194, 196, 240, 60, 67, 240, 60, 67, 237, 28, 36, 237, 28, 36, 246, 146, 150, 246, 146, 150, 252, 223, 224, 252, 223, 224, 242, 89, 95, 242, 89, 95, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 50, 57, 239, 50, 57, 249, 178, 181, 249, 178, 181, 251, 204, 206, 251, 204, 206, 249, 182, 185, 249, 182, 185, 254, 239, 240, 254, 239, 240, 241, 79, 85, 241, 79, 85, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 51, 58, 239, 51, 58, 255, 255, 255, 255, 255, 255, 246, 141, 145, 246, 141, 145, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 239, 50, 57, 239, 50, 57, 249, 178, 181, 249, 178, 181, 251, 204, 206, 251, 204, 206, 249, 182, 185, 249, 182, 185, 254, 239, 240, 254, 239, 240, 241, 79, 85, 241, 79, 85, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 30, 38, 237, 30, 38, 239, 52, 59, 239, 52, 59, 238, 40, 48, 238, 40, 48, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 238, 40, 48, 238, 40, 48, 239, 52, 59, 239, 52, 59, 239, 52, 59, 239, 52, 59, 239, 50, 57, 239, 50, 57, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 30, 38, 237, 30, 38, 239, 52, 59, 239, 52, 59, 238, 40, 48, 238, 40, 48, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 238, 40, 48, 238, 40, 48, 239, 52, 59, 239, 52, 59, 239, 52, 59, 239, 52, 59, 239, 50, 57, 239, 50, 57, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 242, 90, 85, 242, 90, 85, 240, 65, 66, 240, 65, 66, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 246, 127, 107, 246, 127, 107, 246, 147, 151, 246, 147, 151, 239, 54, 61, 239, 54, 61, 241, 80, 85, 241, 80, 85, 237, 33, 41, 237, 33, 41, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 253, 225, 226, 253, 225, 226, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 253, 225, 226, 253, 225, 226, 242, 94, 100, 242, 94, 100, 246, 140, 144, 246, 140, 144, 237, 30, 37, 237, 30, 37, 237, 28, 36, 237, 28, 36, 254, 247, 247, 254, 247, 247, 249, 178, 179, 249, 178, 179, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 246, 167, 175, 246, 167, 175, 238, 48, 56, 238, 48, 56, 239, 55, 61, 239, 55, 61, 255, 253, 253, 255, 253, 253, 254, 248, 248, 254, 248, 248, 255, 249, 250, 255, 249, 250, 254, 247, 248, 254, 247, 248, 250, 191, 194, 250, 191, 194, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 250, 198, 205, 250, 198, 205, 237, 28, 36, 237, 28, 36, 241, 84, 90, 241, 84, 90, 252, 214, 216, 252, 214, 216, 241, 84, 90, 241, 84, 90, 250, 195, 197, 250, 195, 197, 255, 251, 251, 255, 251, 251, 247, 158, 162, 247, 158, 162, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 240, 65, 71, 240, 65, 71, 250, 195, 197, 250, 195, 197, 241, 84, 90, 241, 84, 90, 252, 214, 216, 252, 214, 216, 252, 214, 216, 252, 214, 216, 238, 47, 54, 238, 47, 54, 250, 195, 197, 250, 195, 197, 237, 28, 36, 237, 28, 36, 243, 115, 126, 243, 115, 126, 240, 80, 90, 240, 80, 90, 237, 28, 36, 237, 28, 36, 237, 32, 39, 237, 32, 39, 239, 63, 70, 239, 63, 70, 238, 46, 53, 238, 46, 53, 247, 149, 135, 247, 149, 135, 238, 46, 50, 238, 46, 50, 239, 51, 52, 239, 51, 52, 239, 57, 64, 239, 57, 64, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 38, 60, 237, 38, 60, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 247, 151, 155, 247, 151, 155, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 247, 151, 155, 247, 151, 155, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 245, 106, 91, 245, 106, 91, 245, 124, 129, 245, 124, 129, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36},
{237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36, 237, 28, 36}
};/*YUTU说:这里是从字符转换器那里转换的数据*/
int photo1() {
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
if (hOut == INVALID_HANDLE_VALUE)return GetLastError();
DWORD dwMode = 1;
if (!GetConsoleMode(hOut, &dwMode))return GetLastError();
dwMode |= 0x0004;
if (!SetConsoleMode(hOut, dwMode))return GetLastError();
for(int i = 0; i < row; i++){
for(int j = 0; j < col; j+=3){
wprintf(L"\x1b[38;2;%d;%d;%dm@", data1[i][j], data1[i][j + 1], data1[i][j + 2]);
}
cout << "\n";
}
return 0;
}
void color(int a)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
/* 1 深蓝色
2 深绿色
3 深青色
4 深红色
5 深粉色
6 黄色
7 深白色
8 灰色
9 浅蓝色
10 浅绿色
11 浅青色
12 浅红色
13 浅粉色
14 浅黄色
15 浅白色
背景
1~15 黑色
16~31 深蓝色
32~47 深绿色
48~63 深青色
64~79 深红色
80~95 深粉色
96~111 深黄色
112~127 深白色
128~143 灰色
144~159 浅蓝色
160~175 浅绿色
176~191 浅青色
192~207 浅红色
208~223 浅粉色
224~239 浅黄色
240~255 浅白色
*/
}
void printf_red(const char *s)//输出红色字体
{
printf("\033[0m\033[1;31m%s\033[0m", s);
}
void printf_green(const char *s)//输出绿色字体
{
printf("\033[0m\033[1;32m%s\033[0m", s);
}
void printf_yellow(const char *s)//输出黄色字体
{
printf("\033[0m\033[1;33m%s\033[0m", s);
}
void printf_blue(const char *s)//输出蓝色字体
{
printf("\033[0m\033[1;34m%s\033[0m", s);
}
void printf_pink(const char *s)//输出粉色字体
{
printf("\033[0m\033[1;35m%s\033[0m", s);
}
void printf_cyan(const char *s)//输出水绿色(浅蓝色)字体
{
printf("\033[0m\033[1;36m%s\033[0m", s);
}
void photo(char n){//像素画
if(n=='r'){
color(12);
cout<<"■";
}else if(n=='b'){
color(1);
cout<<"■";
}else if(n=='y'){
color(14);
cout<<"■";
}else if(n=='g'){
color(10);
cout<<"■";
}else if(n=='w'){
color(15);
cout<<"■";
}else if(n=='p'){
color(13);
cout<<"■";
}else if(n=='k'){
cout<<" ";
}
}
void photo_man(){//人物
if(name=="Dream"){
// 1 2 3 4 5 6 7 8 9 10
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;//head
photo('g');photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');photo('g');cout<<endl;
photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;
photo('g');photo('g');photo('w');photo('k');photo('w');photo('k');photo('w');photo('w');photo('g');photo('g');cout<<endl;
photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;
photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;
photo('g');photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');photo('g');cout<<endl;//body
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;
photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;//feet
}
}
void over(){
string over_name;
for(int i=0;i<15;i++){
for(int j=0;j<30;j++){
over_name="dt"+name+to_string(i)+"_"+to_string(j);
// cdhs::out(dt[i][j],over_name);
ofstream cd(&over_name[0]);
cd << dt[i][j];
cd.close();
}
}
over_name=name+"sdf1";
// cdhs::out(dt[i][j],over_name);
ofstream sdfa(&over_name[0]);
sdfa << sdf1;
sdfa.close();
over_name=name+"sdf2";
// cdhs::out(dt[i][j],over_name);
ofstream sdfb(&over_name[0]);
sdfb << sdf2;
sdfb.close();
over_name=name+"ghp";
// cdhs::out(dt[i][j],over_name);
ofstream ghpcd(&over_name[0]);
ghpcd << ghp;
ghpcd.close();
over_name=name+"gw1";
// cdhs::out(dt[i][j],over_name);
ofstream g1(&over_name[0]);
g1 << gw1;
g1.close();
over_name=name+"gw2";
// cdhs::out(dt[i][j],over_name);
ofstream g2(&over_name[0]);
g2 << gw2;
g2.close();
over_name=name+"hp";
// cdhs::out(dt[i][j],over_name);
ofstream sdfc(&over_name[0]);
sdfc << hp;
sdfc.close();
system("cls");
printf("再见!");
system("start https://blog.csdn.net/YUTUmini");
exit(1);
}
struct MOB{
string u1,u2,d1,d2;
int hp,u1c,u2c,d1c,d2c;
};
MOB mob[]={
{"僵","尸","■","■",1,39,39,204,204},//僵尸0
};
struct BLOCK{//方块结构体
string u1,u2,d1,d2;
int ph,u1c,u2c,d1c,d2c;
string name;
};
int bag[100];
BLOCK block[]={//方块数据{第一像素,第二像素,第三像素,第四像素,碰撞箱,颜色号}
{" "," "," "," ",0,0,0,0,0," 空 "},//空气0
{"■","■","■","■",1,120,120,120,120," 石头 "},//石头1
{"▓","▓","▓","▓",0,25,25,25,25," 水方块 "},//水2
{"■","■","■","■",1,15,15,15,15," 圆石 "},//圆石3
{"■","■","■","■",1,162,162,102,102," 草块 "},//草4
{"■","■","■","■",1,102,102,102,102," 土块 "},//土5
{"■","■","■","■",0,68,68,68,68,"岩浆方块"},//岩浆6
{"|#","#|","|#","#|",1,110,110,110,110," 原木 "},//木头7
{"▓","▓","▓","▓",0,147,147,147,147," 树叶 "},//树叶8
{"■","■","■","■",1,248,143,143,248," 深板岩 "},//深板岩9
{"▓","▓","▓","▓",0,15,15,15,15," 细雪块 "},//雪10
{"▓","▓","▓","▓",1,120,120,120,120,"基岩方块"},//基岩11
};
void muzic_die(){//死亡画面
_Clearscreen(f);
cout<<" 你死了\n";
cout<<" "<<name<<"死于:";
if(die==1){
cout<<"发现地板是岩浆做的\n";
}else if(die==2){
cout<<name<<"来到地图之外而死\n";
}else if(die==4){
cout<<name<<"从高空一跃而下\n";
}else {
cout<<"死了\n";
}
anniu jntm;//设置按钮
jntm.csh(10,11,11,17,"重新开始",240,7);//初始化按钮
while(1){
if(jntm.gx_ax()){//检测按钮
break;
}
}//初始角色
hp=10;
sdf1=2;sdf2=8;
dt[2][8]=0;
_Clearscreen(f);
}
void sc(){
for(int i=0;i<15;i++){
for(int j=0;j<30;j++){
if(i==sdf1&&j==sdf2){
color(15);
if(fx=='w'){
cout<<"上玩";
}else if(fx=='s'){
cout<<"下玩";
}else if(fx=='a'){
cout<<"左玩";
}else if(fx=='d'){
cout<<"右玩";
}
if(dt[i][j]==6||dt[i][j]==14||dt[i][j]==15){
hp--;
die=1;
}
if(hp==0){
sdf1=8;
sdf2=8;
}
}else if(gw1==i&&gw2==j&&ghp==1){
if(dt[i][j]==6){
ghp=0;
}else{
color(mob[0].u1c);cout<<mob[0].u1;
color(mob[0].u2c);cout<<mob[0].u2;
}
}else{
color(block[dt[i][j]].u1c);cout<<block[dt[i][j]].u1;
color(block[dt[i][j]].u2c);cout<<block[dt[i][j]].u2;
}
}
cout<<endl;
for(int j=0;j<30;j++){
if(i==sdf1&&j==sdf2){
color(15);
if(fx=='w'){
cout<<"↑家";
}else if(fx=='s'){
cout<<"↓家";
}else if(fx=='a'){
cout<<"←家";
}else if(fx=='d'){
cout<<"→家";
}
}else if(gw1==i&&gw2==j&&ghp==1){
color(mob[0].d1c);cout<<mob[0].d1;
color(mob[0].d2c);cout<<mob[0].d2;
}else{
color(block[dt[i][j]].d1c);cout<<block[dt[i][j]].d1;
color(block[dt[i][j]].d2c);cout<<block[dt[i][j]].d2;
}
}
cout<<endl;
}
cout<<"按鼠标左键挖掘,按wasd上下左右行走,按鼠标右键放方块,\n玩家名称:"<<name<<"\n";
cout<<"X:"<<sdf2<<" Y:"<<sdf1<<"\n";
if(sdf1<0||sdf1>=15||sdf2<0||sdf2>=30){
hp=0;
die=2;
}
if(hp<1){
muzic_die();
}
for(int i=1;i<=hp;i++){
color(4);
cout<<"▓";
}
for(int i=hp;i<10;i++){
color(8);
cout<<"▓";
}
color(15);
cout<<endl;
for(int bag_i=0;bag_i<100;bag_i++){
if(bag[bag_i]>0) {
cout<<block[bag_i].name<<'x'<<bag[bag_i];
}
}
}
void dz(){
ycbj();
if(axj(W)){
if(block[dt[sdf1-1][sdf2]].ph==0&&sdf1!=0){
sdf1--;_Clearscreen(f);fx='w';
slsh=0;
sc();
}else if(fx!='w'){
fx='w';
_Clearscreen(f);
sc();
}
}else if(axj(S)){
if(block[dt[sdf1+1][sdf2]].ph==0&&sdf1!=29){
sdf1++;_Clearscreen(f);
sc();
}
if(fx!='s'){
fx='s';
_Clearscreen(f);
sc();
}
}else if(axj(A)){
if(block[dt[sdf1][sdf2-1]].ph==0&&sdf2!=0){
sdf2--;_Clearscreen(f);fx='a';
sc();
}else if(fx!='a'){
fx='a';
_Clearscreen(f);
sc();
}
}else if(axj(D)){
if(block[dt[sdf1][sdf2+1]].ph==0&&sdf2!=30){
sdf2++;_Clearscreen(f); fx='d';
sc();
}else if(fx!='d'){
fx='d';
_Clearscreen(f);
sc();
}
}else if(axj(z_sb)){
if(fx=='w'){
bjx=sdf1-1;
bjy=sdf2;
}else if(fx=='s'){
bjx=sdf1+1;bjy=sdf2;
}else if(fx=='a'){
bjx=sdf1;bjy=sdf2-1;
}else if(fx=='d'){
bjx=sdf1;bjy=sdf2+1;
}
if(dt[bjx][bjy]!=0&&dt[bjx][bjy]!=2&&dt[bjx][bjy]!=6&&bjx!=14&&bjx!=-1&&bjy!=-1&&bjy!=31&&dt[bjx][bjy]!=11){
if(fx=='s'&&sdf1!=14){
bag[dt[bjx][bjy]]++;
dt[bjx][bjy]=0;
_Clearscreen(f);
sc();
}else if(fx=='w'&&sdf1!=0){bag[dt[bjx][bjy]]++;
dt[bjx][bjy]=0;
_Clearscreen(f);
sc();
}else if(fx=='a'&&sdf2!=0){bag[dt[bjx][bjy]]++;
dt[bjx][bjy]=0;
_Clearscreen(f);
sc();
}else if(fx=='d'&&sdf2!=29){bag[dt[bjx][bjy]]++;
dt[bjx][bjy]=0;
_Clearscreen(f);
sc();
}
}else {
for(int i=1;i<=4;i++){
if(fx=='w'){
bjx--;
}else if(fx=='s'){
bjx++;
}else if(fx=='a'){
bjy--;
}else if(fx=='d'){
bjy++;
}
if(dt[bjx][bjy]!=0&&dt[bjx][bjy]!=2&&dt[bjx][bjy]!=6&&bjx!=14&&bjx!=-1&&bjy!=-1&&bjy!=31&&dt[bjx][bjy]!=11){
if(bjx<15&&bjy>0&&bjy<30){bag[dt[bjx][bjy]]++;
dt[bjx][bjy]=0;
_Clearscreen(f);
sc();
break;
}
}
}
}
}else if(axj(y_sb)){
if(fx=='w'){
dt[sdf1-1][sdf2]=3;
}else if(fx=='s'){
dt[sdf1+1][sdf2]=3;
}else if(fx=='a'){
dt[sdf1][sdf2-1]=3;
}else if(fx=='d'){
dt[sdf1][sdf2+1]=3;
}
_Clearscreen(f);
sc();
}else if(axj(ESC)){
over();
exit(1);
}
}
void gs(string n){
cout<<n<<endl;
}
void open(){
for(int i=0;i<15;i++){
for(int j=0;j<30;j++){
string _name;
_name="dt"+name+to_string(i)+"_"+to_string(j);
ifstream cd(&_name[0]);
cd >> dt[i][j];
cd.close();
}
}
string name1;
name1=name+"sdf1";
ifstream cd1(&name1[0]);
cd1 >> sdf1;
cd1.close();
string name2;
name2=name+"sdf2";
ifstream cd2(&name2[0]);
cd2 >> sdf2;
cd2.close();
string nameh;
nameh=name+"hp";
ifstream cdh(&nameh[0]);
cdh >> hp;
cdh.close();
string gwa;
gwa=name+"gw1";
ifstream cdg1(&gwa[0]);
cdg1 >> gw1;
cdg1.close();
string gwb;
gwb=name+"gw2";
ifstream cdg2(&gwb[0]);
cdg2 >> gw2;
cdg2.close();
string gwh;
gwh=name+"ghp";
ifstream cdgh(&gwb[0]);
cdgh >> ghp;
cdgh.close();
}
void csh(){
printf_red(" ");
system("mode con cols=120 lines=46");
system("title YUTU制作——沙盒游戏");
_Clearscreen(f);
system("cls");
Sleep(1000);
_Clearscreen(f);
for(int i=0;i<15;i++){
for(int j=0;j<30;j++){
if(i==3){
dt[i][j]=4;
}else if(i==13||i==12){
dt[i][j]=9;
}else if(i==14){
dt[i][j]=11;
}else if(i==0||i==1||i==2){
dt[i][j]=0;
}else{
dt[i][j]=1;
}
if(j==0||j==29){
dt[i][j]=11;
}
}
}
sdf1=2;sdf2=8;
dt[7][7]=2;
dt[5][5]=2;
dt[6][6]=2;
dt[10][10]=6;
dt[11][10]=6;
dt[10][11]=6;
dt[3][28]=2;
dt[3][27]=2;
dt[4][27]=2;
dt[2][11]=7;
dt[1][11]=8;
dt[3][11]=5;
dt[1][10]=8;
dt[1][12]=8;
dt[0][11]=8;
dt[9][9]=0;
}
void m(){
int gwyd=0;
system("cls");
photo1();
yanse(15);
cout<<"你的名字叫什么?\n";
cin>>name;
system("cls");
csh();
open();
sc();
while(1){
if(sdf1==gw1&&sdf2==gw2&&ghp==1){
hp-=0.0000001;
system("cls");
sc();
}
if(hp==0){
muzic_die();
}
dz();
if(gzt==125-1){
if(block[dt[sdf1+1][sdf2]].ph==0&&dt[sdf1+1][sdf2]!=8&&dt[sdf1+1][sdf2]!=6&&dt[sdf1+1][sdf2]!=2){
sdf1++;
slsh++;
if(dt[sdf1+1][sdf2]==2||dt[sdf1+1][sdf2]==6){
slsh=0;
}
system("cls");
sc();
}else{
if(slsh>2){
hp-=slsh-2;
slsh=0;
die=4;
system("cls");
sc();
}else{
slsh=0;
}
}
if(ghp==1&&gwyd==12500-1){//怪物
if(sdf1>gw1){
int n=dt[gw1+1][gw2];
if(block[n].ph==0){
gw1++;system("cls");sc();
}
}
if(sdf1<gw1&&block[dt[gw1-1][gw2]].ph==0){
gw1--;
system("cls");
sc();
}
if(sdf2>gw2&&block[dt[gw1][gw2+1]].ph==0){
gw2++;system("cls");
sc();
}
if(sdf2<gw2&&block[dt[gw1][gw2-1]].ph==0){
gw2--;system("cls");
sc();
}
}//000000000000000000000000000000000000000000000000000000000000
}
sj++;
sj%=240;
gwyd++;
gwyd%=12500;
gzt++;gzt%=125;
}
}
int main(){
ycgb();//隐藏光标
ycbj();//移除编辑模式
m();
}