diff options
Diffstat (limited to 'others/other')
-rwxr-xr-x | others/other/nuoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/others/other/nuoc.py b/others/other/nuoc.py index 9fcff54..4d53861 100755 --- a/others/other/nuoc.py +++ b/others/other/nuoc.py @@ -17,7 +17,7 @@ visited = ([[True] * n] result = 0 while queue: - h, i, j = heappop(queue) + h, i, j = heappop(queue) for x, y in (i + 1, j), (i - 1, j), (i, j + 1), (i, j - 1): if 0 <= x < m and 0 <= y < n and not visited[x][y]: result += max(0, h - height[x][y]) |