mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-06 23:28:29 +08:00
update kamacoder/0101 Python solution
remove duplicate split() function
This commit is contained in:
@ -190,10 +190,10 @@ int main() {
|
|||||||
from collections import deque
|
from collections import deque
|
||||||
|
|
||||||
# 处理输入
|
# 处理输入
|
||||||
n, m = list(map(int, input().strip().split()))
|
n, m = list(map(int, input().strip()))
|
||||||
g = []
|
g = []
|
||||||
for _ in range(n):
|
for _ in range(n):
|
||||||
row = list(map(int, input().strip().split()))
|
row = list(map(int, input().strip()))
|
||||||
g.append(row)
|
g.append(row)
|
||||||
|
|
||||||
# 定义四个方向、孤岛面积(遍历完边缘后会被重置)
|
# 定义四个方向、孤岛面积(遍历完边缘后会被重置)
|
||||||
|
Reference in New Issue
Block a user