Skip to content

ABC-340

A

URLURL\:\to

解法


B

URLURL\:\to

解法


C

URLURL\:\to https://atcoder.jp/contests/dp/tasks/dp_a

#DP

Python

@cache
def f(x):
return 0 if x==1 else f((x//2))+f((x+1)//2) + x
def solve():
N = Integer().content
print(f(N))

解法


D

URLURL\:\to

解法


E

URLURL\:\to

解法