A35 - Game 4
提出
code: python
n = int(input())
a = list(map(int, input().split()))
# ジグザク
解答
code: python
N = int(input())
A = list(map(int, input().split()))
dp = [ None * (N+1) for i in range(N+1) ] # N 段目
for j in range(1, N+1):
# 1 ~ N-1 段目
for i in reversed(range(1, N)):
for j in range(1, i+1):
# 太郎
if i % 2 == 1:
# 次郎
if i % 2 == 0: