Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aefb7aa

Browse files
committed
update kamacoder/0101 Python solution
remove duplicate split() function
1 parent 8b0d5b2 commit aefb7aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎problems/kamacoder/0101.孤岛的总面积.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ int main() {
190190
from collections import deque
191191

192192
# 处理输入
193-
n, m = list(map(int, input().strip().split()))
193+
n, m = list(map(int, input().strip()))
194194
g = []
195195
for _ in range(n):
196-
row = list(map(int, input().strip().split()))
196+
row = list(map(int, input().strip()))
197197
g.append(row)
198198

199199
# 定义四个方向、孤岛面积(遍历完边缘后会被重置)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /