Skip to content

Commit b196b2a

Browse files
improved memory usage
1 parent e767f4f commit b196b2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Divisibility-by-K.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ def solve(arr, length, K):
6767
length, K = input().split()
6868
K = int(K)
6969

70-
arr = input()
71-
arr = list(map(int, arr.split()))
70+
arr = list(map(int, input().split()))
7271

7372
ans.append(solve(arr, length, K))
7473

75-
for i in ans:
76-
print(i)
74+
print(*ans, sep="\n")

0 commit comments

Comments
 (0)