Hello World

Hello World

EvanNotFound HaHa

H1

H2

H3

H4

H5
H6

Bold

Italic

remove

text

code inline

pie
title P
"1" : 10
"2" : 10
"3" : 50
"4" : 30

信息

换行测试
换行测试
换行测试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include<bits/stdc++.h>
using namespace std;
typedef pair<int, int> PII;
#define x first
#define y second
const int N = 1010;

int n, m;
char g[N][N];
int dist[N][N];

void BFS()
{
memset(dist, -1, sizeof(dist));
queue<PII> q;
for(int i = 0; i < n; ++i)
{
for(int j = 0; j < m; ++j)
{
if(g[i][j] == '1')
{
dist[i][j] = 0;
q.push({i, j});
}
}
}
int dx[] = {-1, 0, 1, 0};
int dy[] = {0, 1, 0, -1};
while(!q.empty())
{
auto t = q.front();
q.pop();
for(int i = 0; i < 4; ++i)
{
int nx = t.x + dx[i];
int ny = t.y + dy[i];
if(nx < 0 || nx >= n || ny < 0 || ny >= m) continue;
if(dist[nx][ny] != -1) continue;
dist[nx][ny] = dist[t.x][t.y] + 1;
q.push({nx, ny});
}
}
}

int main()
{
scanf("%d%d", &n, &m);
for(int i = 0; i < n; ++i)
scanf("%s", g[i]);
BFS();
for(int i = 0; i < n; ++i)
{
for(int j = 0; j < m; ++j)
printf("%d ", dist[i][j]);
printf("\n");
}
return 0;
}

$$
\begin{aligned}
a + b & = 2 \
& = 1 \
& = a - b \
\end{aligned}
$$

$a + b = 1$

信息

换行测试
换行测试
换行测试

提示

换行测试
换行测试
换行测试

自定义标题

换行测试
换行测试
换行测试

默认 提示块标签

default 提示块标签

primary 提示块标签

success 提示块标签

info 提示块标签

warning 提示块标签

danger 提示块标签

自定义提示块标签

Folding 测试: 点击查看更多

啊啊啊啊啊

danger 提示块标签

tip 提示块标签

title

Yes.

This is Tab 1.

This is Tab 2.

This is Tab 2.

This is Tab 3.

This is Tab 3.

This is Tab 3.

不设置任何参数的 按钮 适合融入段落中。

regular 按钮适合独立于段落之外:

示例博客 示例博客

large 按钮更具有强调作用,建议搭配 center 使用:

开始使用
  • Title: Hello World
  • Author: EvanNotFound
  • Created at : 2023-09-29 00:00:00
  • Updated at : 2024-11-21 10:44:39
  • Link: https://vercel.fallingsakura.top/4a17b156.html
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
Hello World