跳到正文

zpx5201314

1490289

冲S1

这是 2026年10月19日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
1490289
抓取

奖项

2025 CSP-J
一等奖
2025 CSP-S
二等奖
2024 CSP-J
一等奖
2023 CSP-J
二等奖

版本

  1. v2当前
  2. v1

https://g8hh.github.io/evolve/

https://generals.io/

https://www.rngdle.com/

https://www.anyanygame.com/turing-test

https://dip.xo.je/betterflorr2.6.8.user.js

https://www.cnblogs.com/crab-in-the-northeast/p/diameter-and-center-on-tree.html 大战 https://chenzheaya.github.io/OnlineJudgeMaintainerSimulator/ https://deepmess.com/namerena/#

神奇

https://algobeatcontest.github.io/practice

尼姑颜色

寄

慧信息

https://oi-personal-simulator.netlify.app/ 壹万florr

DP

计数,半黑半绿

计数,都是黑

图

炒股

旧florr

130Epic=0Legendary

中华好花花

florr团队

大湾区轨道交通(2026/7/1)

长株潭轨道交通(2026/2)

厦漳泉闽南三角洲轨道交通(2026/4/24)

有用的

插件

帖子

剪贴板,文章

中国台风

世界台风

考古

代码
  MMMMMMMMMMMMMMMMMMMM       MMMMMMMMMM        MMMMMMMMMM        MMMMM               MMMMM
 M11111111111111111111M     M1111111111M      M1111111111M      M11111MM           MM11111M
 M11111111111111111111M     M1111111111M      M1111111111M       MM11111MM       MM11111MM
  MMMMMMMM1111MMMMMMMM     M11111MM11111M    M11111M 11111M        MM11111MM   MM11111MM
         M1111M            M11111MM11111M    M11111M 11111M          MM11111MMM11111MM
         M1111M           M11111M  M11111M  M11111M  M11111M           MM111111111MM
         M1111M           M11111M  M11111M  M11111M  M11111M             MM11111MM
         M1111M          M11111M    M11111MM11111M    M11111M          MM111111111MM
         M1111M          M11111M    M11111MM11111M    M11111M        MM11111MMM11111MM
         M1111M         M11111M      M1111111111M      M11111M     MM11111MM   MM11111MM
         M1111M         M11111M      M1111111111M      M11111M   MM11111MM       MM11111MM
         M1111M         M11111M      M1111111111M      M11111M  M11111MM           MM11111M
          MMMM           MMMMM        MMMMMMMMMM        MMMMM    MMMMM               MMMMM

扫雷1.0

C++
#include <bits/stdc++.h>
#include <conio.h>
#include <windows.h>
using namespace std;
const int MAX=10;
const int N=8;
bool ans[MAX][MAX];
char ans_in[MAX][MAX];
bool flag_see[MAX][MAX];
bool winner[MAX][MAX];
int wincnt;
int donot;
int fre[3][9]={{0},{0,0,1,1,1,0,-1,-1,-1},{0,1,1,0,-1,-1,-1,0,1}};
void init()
{
	mt19937 rands(time(0));
	for(int i=1;i<=N;i++)
	{
		for(int j=1;j<=N;j++)
		{
			if(rands()%100<20)
			{
				ans[i][j]=true;
				ans_in[i][j]='*';
			}
			else
			{
				ans_in[i][j]='0';
			}
		}
	}
	for(int i=1;i<=N;i++)
	{
		for(int j=1;j<=N;j++)
		{
			if(ans[i][j]) continue;
			for(int k=1;k<=8;k++)
			{
				ans_in[i][j]+=(ans[i+fre[1][k]][j+fre[2][k]]);
			}
		}
	}
}
void game_over()
{
	system("cls");
	for(int i=1;i<=N;i++)
	{
		for(int j=1;j<=N;j++)
		{
			if(ans_in[i][j]!='*') cout<<ans_in[i][j]<<" ";
			else cout<<"\033[31m*\033[0m ";
		}
		cout<<endl;
	}
	exit(0);
}
void dfs(int x,int y)
{
	if(flag_see[x][y])return;
	flag_see[x][y]=1;
	if(ans_in[x][y]!='0')return;
	if(x<1||x>N) return;
	if(y<1||y>N) return;
	dfs(x+1,y);
	dfs(x-1,y);
	dfs(x,y+1);
	dfs(x,y-1);
}
void Game_map_print(int x,int y)
{
	for(int i=1;i<=N;i++)
	{
		for(int j=1;j<=N;j++)
		{
			if(i!=x||j!=y) cout<<"\033[0m";
			else cout<<"\033[31m";
			if(winner[i][j]) cout<<"X ";
			else if(flag_see[i][j])cout<<ans_in[i][j]<<" ";
			else cout<<"█";
		}
		cout<<endl;
	}
}
int main()
{
	init();
	int getx=1,gety=1;
	while(1)
	{
		char ch;
		ch=getch();
		if(ch=='w') getx--;
		if(ch=='s') getx++;
		if(ch=='a') gety--;
		if(ch=='d') gety++;
		getx=max(1,min(N,getx));
		gety=max(1,min(N,gety));
		if(ch==' ')
		{
			if(ans[getx][gety]) game_over();
			else if(flag_see[getx][gety]) continue;
			else if(ans_in[getx][gety]!='0') flag_see[getx][gety]=1;
			else dfs(getx,gety);
		}
		if(ch=='q')
		{
			if(winner[getx][gety]) wincnt--,donot-=ans[getx][gety];
			else wincnt++,donot+=ans[getx][gety];
			winner[getx][gety]=!winner[getx][gety];
		}
		if(wincnt==N&&donot==N)
		{
			system("cls");
			cout<<"\033[0mYOU WIN!";
			exit(0);
		}
		system("cls");
		Game_map_print(getx,gety);
		Sleep(100);
	}
	return 0;
}

同学朋友

  • 我的主号(荒废)

  • 我的副号

  • 我的小号

  • 在校同学(信息队)

  • 小一岁(信息队)

千万别点开,不然会后悔的

Phigros

2026年2月制作头图

2025年11月制作头图

2025年8月制作头图