---
title: "Discussion on \"[noip 2017 普及组] 棋盘\" | Hashnode"
description: "Discussion on \"[noip 2017 普及组] 棋盘\". 0.题目描述\n题面:P3956 [NOIP2017 普及组] 棋盘\n有一个\\(m \\times m\\)的棋盘，棋盘上每一个格子可能是红色、黄色或没有任何颜色的。你现在要从棋盘的最左上角走到棋盘的最右下角。\n任何一个时刻，你所站在的位置必须是有颜色的（不能是无色的）， 你只能向上、 下、左、 右四个方向前进。当你从一个格子走向另一个格子时，如果两个格子的颜色相同，那你不需要花费金币；如果不同，则你需要花费  \\(1\\) 个金币。\n你可以花费 \\(2\\) 个金币将一个无色格子暂时变成指定的颜色，但是..."
url: "https://hashnode.com/posts/noip-2017/630dcc3c56df9e8e50255300"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[noip 2017 普及组\] 棋盘](https://invalidname.hashnode.dev/noip-2017?utm_source=hashnode&utm_medium=feed)

0.题目描述 题面:P3956 \[NOIP2017 普及组\] 棋盘 有一个\\(m \\times m\\)的棋盘，棋盘上每一个格子可能是红色、黄色或没有任何颜色的。你现在要从棋盘的最左上角走到棋盘的最右下角。 任何一个时刻，你所站在的位置必须是有颜色的（不能是无色的）， 你只能向上、 下、左、 右四个方向前进。当你从一个格子走向另一个格子时，如果两个格子的颜色相同，那你不需要花费金币；如果不同，则你需要花费 \\(1\\) 个金币。 你可以花费 \\(2\\) 个金币将一个无色格子暂时变成指定的颜色，但是...

Aug 30, 2022 · 3 min read · invalidname.hashnode.dev  
Updated Sep 2, 2022  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Star](https://hashnode.com/@InvalidName)

@InvalidName · China

  
[View profile](https://hashnode.com/@InvalidName)

A Chinese OIer and a tosser.

## Responses 1

Markdown supported · ⌘↵ to post

[Laffey](https://hashnode.com/@Laffey)

[Aug 30, 2022](https://hashnode.com/posts/noip-2017/630dcc3c56df9e8e50255300/comment/630dcdbf56df9e8e5025534f)

tql dalao %%%
