- Category:
- Other systems
- Tags:
-
- File Size:
- 5kb
- Update:
- 2017-12-17
- Downloads:
- 0 Times
- Uploaded by:
- 年少
Description: The writing program simulates the game, and the computer simulates the process of watching the game as follows:
1. Analyze the game and convert the game into a two - bit array. 0 is the blank area, the number indicates that the game card is the number of game cards that appear in the game.
2. Use the breadth first search algorithm to judge whether the two game cards can be eliminated.
3, the program simulates a pair of game cards that can be eliminated by clicking.
A game of a game is transformed into a two-dimensional array as follows:
00000
01200
00340
00010
Input the row and column of the two bit array, the coordinates of two bit array, the initial element, and the coordinates of the termination elements, so as to determine whether the initial game card and the ending game card can be eliminated.
For example input
45
0000001200 0034000010
11
33
Output TRUE
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
作业
|
作业\code.php | 657 | 2017-11-30
|
作业\jianbiao.php | 935 | 2017-11-30
|
作业\jianku.php | 726 | 2017-11-30
|
作业\login.css | 890 | 2017-11-30
|
作业\login.html | 1070 | 2017-11-30
|
作业\login.php | 1123 | 2017-11-30
|
作业\regedit.html | 1098 | 2017-11-30
|
作业\regedit.php | 1063 | 2017-11-30 |