Enter the integer $ N $
Example: 1
N = int(input())
Enter a set of integers $ A, B, C $
Example: 1 4 3
A, B, C = map(int, input().split())
Enter a set of integers $ A_1, A_2, A_3, \ cdots $
Example: 1 4 3 2 5 2
#list type
A = list(map(int, input().split())) # [1, 4, 3, 2, 5, 2]
#list type (sorted in ascending order)
A = sorted(map(int, input().split())) # [1, 2, 2, 3, 4, 5]
#set type (remove duplicates)
A = sorted(map(int, input().split())) # {1, 2, 3, 4, 5}
Recommended Posts