A group of people are playing a game they are standing in a line, each carrying a card with a number on it. These numbers are given in the "A". One random number S is selected.
Find out new list of numbers after
S people are removed from left
S people are removed from right
Example [1,2,3] and S be 1
After removing from left [2,3]
After removing from right [1,2]
Output 23
12
n = input().split()
s = int(input())
i = s
j = len(n) - s
for i in range(i, j):
print(i, end=' ')
Comments
Leave a comment