Skip to content

Commit

Permalink
humph
Browse files Browse the repository at this point in the history
  • Loading branch information
javaarchive committed Aug 3, 2020
1 parent f785693 commit bea0fef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions USACOClassLiveTest/src/lightson.java
Expand Up @@ -58,11 +58,11 @@ public static void recur(int x, int y) {
if (!map[room.x][room.y]) {
total++;
// System.out.println("Lit "+room.x+" "+room.y);
}
if (nearBright(room.x, room.y)) {
map[room.x][room.y] = true;
visited[room.x][room.y] = true;
recur(room.x, room.y);
if (nearBright(room.x, room.y)) {
map[room.x][room.y] = true;
visited[room.x][room.y] = true;
recur(room.x, room.y);
}
}
map[room.x][room.y] = true;
}
Expand Down

0 comments on commit bea0fef

Please sign in to comment.