提供一组数据

P1162 填涂颜色

dinglinxi0409 @ 2021-08-22 08:55:44

#6输入:

8
1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 1
1 0 1 1 1 1 0 1
1 0 1 0 0 1 1 1
1 0 1 0 0 0 0 0
1 0 1 1 1 1 1 1
1 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1

#6输出:

1 1 1 1 1 1 1 1
1 2 2 2 2 2 2 1
1 2 1 1 1 1 2 1
1 2 1 0 0 1 1 1
1 2 1 0 0 0 0 0
1 2 1 1 1 1 1 1
1 2 2 2 2 2 2 1
1 1 1 1 1 1 1 1

by DragonMeng @ 2022-02-04 10:12:58

@dinglinxi0409 万分感谢,本来想着一行一行过,结果寄在了这上面


by dinglinxi0409 @ 2022-10-28 16:55:42

@DragonMeng +1


|