From ed5ef4c3cbe18be4f08a16894d74a3968dcd7ce2 Mon Sep 17 00:00:00 2001 From: Samuel Vermeulen Date: Fri, 30 Dec 2022 18:33:08 +0100 Subject: [PATCH] up --- banquet.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 banquet.py 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