From cbea2d783c59f71502fa35509f97562b1b968bf6 Mon Sep 17 00:00:00 2001 From: Fedor Lyanguzov Date: Mon, 9 Dec 2024 17:16:08 +0300 Subject: [PATCH] 09.1, 09.2 python --- 09/09.py | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 09/09.py diff --git a/09/09.py b/09/09.py new file mode 100644 index 0000000..758b302 --- /dev/null +++ b/09/09.py @@ -0,0 +1,67 @@ + + + + +data = open("input.txt").read().strip() +def f(data): + data = list(map(int, data)) + + nl = 1 + nr = len(data)//2 + l = data[0] + s = data[0]*0 + i = 1 + j = -1 + while i