Reading many numbers
Read · 1 of 4
First n, then n numbers
Most problems give the count on one line and the numbers on the next. Read them all at once into a list: nums = list(map(int, input().split())).
Read · 1 of 4
Most problems give the count on one line and the numbers on the next. Read them all at once into a list: nums = list(map(int, input().split())).