readonly fix
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// General imports
|
||||
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.math.*;
|
||||
import java.util.*;
|
||||
|
||||
public class Minesweeper {
|
||||
static char[][] input;
|
||||
@@ -13,7 +13,6 @@ public class Minesweeper {
|
||||
static int b;
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
// Write code here
|
||||
@@ -50,11 +49,9 @@ public class Minesweeper {
|
||||
String s = String.format("%.3f", maxProb);
|
||||
System.out.println(s);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void solve(int index, char[][] grid, int bombs) {
|
||||
|
||||
if (index >= r * c) {
|
||||
if (bombs == b && isValid(grid)) {
|
||||
addPoss(grid);
|
||||
@@ -86,7 +83,6 @@ public class Minesweeper {
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
public static boolean isValid(char[][] grid) {
|
||||
@@ -118,9 +114,7 @@ public class Minesweeper {
|
||||
if (grid[i][j] == '#') {
|
||||
safe[i][j]++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user