kwm_t

kwm_tのメモ

Codeforces Round #826 (Div. 3)

■A - Compare T-Shirt Sizes
やる
■B. Funny Permutation
ans[i] = i + 1
rotate(ans.begin(), ans.begin() + 2, ans.end());
■C - Minimize the Thickness
最初から何個取るか
■D - Masha and a Beautiful Tree
根っこから頑張る
■E. Sending a Sequence Over the Network
dp[i]:=iまでで構築できるか
dp[i-1-a[i-1]]=trueならdp[i]=true
dp[i]=trueならdp[i+a[i]+1]=true;