Added 18th task

This commit is contained in:
Dmitriy Shishkov 2021-01-16 11:57:03 +05:00
parent 33caa3977f
commit 50e622fac1
No known key found for this signature in database
GPG Key ID: 7CAE12ED13853CAC
2 changed files with 9 additions and 0 deletions

5
18/1.py Normal file
View File

@ -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

4
18/input.txt Normal file
View File

@ -0,0 +1,4 @@
1 8 8 4
10 1 1 3
1 3 12 2
2 3 5 6