QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 256 MB Total points: 100

#5317. Winmine.exe

统计

Notes

(a) The upper bound of w (the number of mines) should be 1500, rather than 1000 in the problem statement.

(b) There is another (the third) constraint about the initial state of board: for any pair of unrevealed squares A and B, if A and B are both adjacent to a connected component S, where S is a connected area consisting of only squares with positive positive positive positive numbers, then A and B can always be connected by unrevealed squares. For example, the following board contradicts this constraint due to the disconnection of squares on row 7 column 3 and row 8 column 4:

000000011.
11000001..
.1000002..
11000001..
0000000111
0111000000
01.3221100
012....100
0012221100
1100001110
.100001.10

, whereas the following one is acceptable:

..10000000
2210011100
000001.100
000001.100
000011.221
00001.....
01122.....
12........
..........
..........

Discussions

About Discussions

The discussion section is only for posting: Editorials, General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues. Submitting multiple issues may cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.