diff --git a/banquet.py b/banquet.py new file mode 100644 index 0000000..a1442f2 --- /dev/null +++ b/banquet.py @@ -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] \ No newline at end of file