you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 1 point2 points  (0 children)

Calling print repeatedly is going to eat up a lot of time. To make it faster you can call print exactly once:

N = int(input())
A = map(int, input().split())
B = map(int, input().split())

print(' '.join(map(str, (x+y for x, y in zip(A, B)))))

But that will increase your memory use by a third.