Skip to content

Commit 16c18a3

Browse files
authored
Update BJ_11559_PuyoPuyo.java
1 parent 59aa34e commit 16c18a3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

250505/BJ_11559_PuyoPuyo.java

+1-16
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99
public class Main {
1010
public static char[][] map;
1111
public static int[][] deltas = {{1, 0}, {0, 1}, {0, -1}, {-1, 0}};
12-
public static int answer = 0;
13-
14-
public static class Puyo {
15-
int x, y;
16-
char color;
17-
18-
public Puyo(int x, int y, char color) {
19-
this.x = x;
20-
this.y = y;
21-
this.color = color;
22-
}
23-
}
2412

2513
public static void main(String[] args) throws IOException {
2614
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
@@ -37,15 +25,12 @@ public static void main(String[] args) throws IOException {
3725

3826
while (true) {
3927
boolean isPopped = false;
40-
4128
boolean[][] visited = new boolean[12][6];
4229

4330
for (int i = 0; i < 12; i++) {
4431
for (int j = 0; j < 6; j++) {
4532
if (map[i][j] != '.' && !visited[i][j]) {
46-
if (bfs(i, j, visited)) {
47-
isPopped = true;
48-
}
33+
if (bfs(i, j, visited)) isPopped = true;
4934
}
5035
}
5136
}

0 commit comments

Comments
 (0)