跳到正文

dai137

2111732

这个家伙很懒,只留下了这串文字

在洛谷打开
资料、奖项与版本

资料

编号
2111732
抓取

国王棋:https://generals.gxwtf.cn/

炮台:https://turrets.easel.games/

AI:https://aiteen.top/

AcWing:https://acwing.com/

…:https://jytool.pages.dev/

太空大战http://103.236.99.249:61316/login

-O2 -std=c++14

C++
#include <windows.h>
#include <bits/stdc++.h>
void ColorPrint(const std::string& text, int color){
	HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTextAttribute(hConsole,color);
	std::cout<<text;
	SetConsoleTextAttribute(hConsole,7);
} 
int w[11][11]={
	{0,0,0,0,0,0,0,0,0,0},
	{0,255,255,255,255,255,255,255,255,255,255},
	{0,255,255,221,255,255,102,102,255,255,255},
	{0,255,221,255,221,255,102,255,102,255,255},
	{0,255,221,255,255,255,102,102,255,255,255},
	{0,255,255,221,255,255,102,102,102,255,255},
	{0,255,255,255,221,255,102,255,255,102,255},
	{0,255,221,255,221,255,102,255,255,102,255},
	{0,255,255,221,255,255,102,102,102,255,255},
	{0,255,255,255,255,255,255,255,255,255,255},
	{0,153,153,153,153,153,153,153,153,153,153},
};
int main(){
	for (int i=1;i<=10;i++){
		for (int j=1;j<=10;j++){
			ColorPrint("XX",w[i][j]);
		}
		printf("\n");
	}
	return 0;
}

还没有收录这位用户的文章。