675:为高尔夫比赛砍树(修改)
This commit is contained in:
parent
356f4d01f0
commit
83dc9f3b9f
@ -83,7 +83,7 @@ public class CutOffTreesForGolfEvent {
|
|||||||
for (int i = 0; i < xL; i++) {
|
for (int i = 0; i < xL; i++) {
|
||||||
List<Integer> list = forest.get(i);
|
List<Integer> list = forest.get(i);
|
||||||
for (int j = 0; j < yL; j++) {
|
for (int j = 0; j < yL; j++) {
|
||||||
if (list.get(j) > 0) {
|
if (list.get(j) > 1) {
|
||||||
map.put(list.get(j), new Pair<>(i, j));
|
map.put(list.get(j), new Pair<>(i, j));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user