From 50e622fac17789874ad4b87f78923cf4db4e0bce Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 16 Jan 2021 11:57:03 +0500 Subject: [PATCH] Added 18th task --- 18/1.py | 5 +++++ 18/input.txt | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 18/1.py create mode 100644 18/input.txt diff --git a/18/1.py b/18/1.py new file mode 100644 index 0000000..bc6bdff --- /dev/null +++ b/18/1.py @@ -0,0 +1,5 @@ +n = int(input()) + +with open('./input.txt', 'r') as f: + arr = [f.readline().split() for i in range(n)] + steps = (n - 1) * 2 \ No newline at end of file diff --git a/18/input.txt b/18/input.txt new file mode 100644 index 0000000..fabc2f5 --- /dev/null +++ b/18/input.txt @@ -0,0 +1,4 @@ +1 8 8 4 +10 1 1 3 +1 3 12 2 +2 3 5 6 \ No newline at end of file