This commit is contained in:
2022-12-30 18:33:08 +01:00
parent d00ace2710
commit ed5ef4c3cb

12
banquet.py Normal file
View 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]