Dorijanko

Minesweeper(1600)

Aug 24th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. This task is literally Minesweeper.
  2. Input: N, M and K. The board is of size N*M and there are K bombs on it. 5<=N,M<=40, 1<=K<=N*M/4.
  3. After that your program outputs the position on the board where the first "click" will happen.
  4. Interaction:
  5. The following repeats until otherwise stated:
  6. The interactor prints the current state of the game; numbers say how many bombs are around the place, '*' says that your program identified the place as a bomb and '?' says that the state of the place is unknown.
  7. Your program then prints the number of conclusions. If it's 0, your program must terminate right after printing 0.
  8. Each conclusion consists of the row number, column number(both 0-indexed) and the conclusion which is either '.'(your program thinks the place isn't a bomb) or '*'(your program thinks the place is a bomb). If any of the conclusions is wrong, after outputting all the conclusions, instead of outputting the current state of the game, the interactor will say "Wrong" and your program must terminate.
  9. If your program reads a state with no '?', your program must immediately terminate as the game is over.
  10. Scoring: If there are P non-? fields at the end, you get (formula in statement) points for that test case.
  11. In test cases worth about 10% of points, N=9, M=9, K=10.
  12. In test cases worth about 20% of points, N=16, M=16, K=40.
  13. In test cases worth about 25% of points, N=16, M=30, K=99.
  14. In test cases worth about 5% of points, N,M<=8.
  15. In test cases worth about 10% of points, N,M<=15.
  16. In test cases worth about 10% of points, N,M<=25.
  17. In the remaining test cases there are no additional limits.
Add Comment
Please, Sign In to add comment