A16 - Dungeon 1
https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_p
code: python
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
# 0 1 2 3 4
# 2--4--1--3
# 5---3---7
dp = None * n
dp0 = 0
dp1 = a0
for i in range(2, n):
dpi = min(dpi-1 + ai-1, dpi-2 + bi-2)
print(dp-1)