题目 | Array Painting
Educational Codeforces Round 152 (Rated for Div. 2)
D. Array Painting
算法 | 最近公共祖先
最近公共祖先 (LCA, Lowest Common Ancestor):树中两个节点的最近公共祖先,就是这两个点的公共祖先里面,离根最远的那个。
题目 | Moscow Gorillas
题目 | Ntarsis' Set
题目 | Work Group
VK Cup 2015 - Round 2 (unofficial online mirror, Div. 1 only)
B. Work Group