From aefb7aa83d8eb7ed08dd57e277edfd8c2a6b76ea Mon Sep 17 00:00:00 2001 From: HJHuangUM <57804285+Wogwan@users.noreply.github.com> Date: Sun, 18 Aug 2024 14:58:33 -0700 Subject: [PATCH] update kamacoder/0101 Python solution remove duplicate split() function --- problems/kamacoder/0101.孤岛的总面积.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problems/kamacoder/0101.孤岛的总面积.md b/problems/kamacoder/0101.孤岛的总面积.md index a1793337..09146dcf 100644 --- a/problems/kamacoder/0101.孤岛的总面积.md +++ b/problems/kamacoder/0101.孤岛的总面积.md @@ -190,10 +190,10 @@ int main() { from collections import deque # 处理输入 -n, m = list(map(int, input().strip().split())) +n, m = list(map(int, input().strip())) g = [] for _ in range(n): - row = list(map(int, input().strip().split())) + row = list(map(int, input().strip())) g.append(row) # 定义四个方向、孤岛面积(遍历完边缘后会被重置)