up
This commit is contained in:
12
banquet.py
Normal file
12
banquet.py
Normal file
@@ -0,0 +1,12 @@
|
||||
nbPersonnes = int(input())
|
||||
nbChangPosition = int(input())
|
||||
position = [0] * nbPersonnes
|
||||
|
||||
for loop in range(nbPersonnes):
|
||||
position[loop] = int(input())
|
||||
|
||||
for loop in range(nbChangPosition):
|
||||
pos1 = int(input())
|
||||
pos2 = int(input())
|
||||
|
||||
position[pos1] = position[pos2]
|
||||
Reference in New Issue
Block a user