675:为高尔夫比赛砍树(修改)

This commit is contained in:
轩辕龙儿 2022-05-24 09:07:08 +08:00
parent 356f4d01f0
commit 83dc9f3b9f

View File

@ -83,7 +83,7 @@ public class CutOffTreesForGolfEvent {
for (int i = 0; i < xL; i++) {
List<Integer> list = forest.get(i);
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));
}
}