0w1

Entries from 2016-08-17 to 1 day

CFR 596 D. Wilbur and Trees ( Expectation DP )

Problem - D - Codeforces We will try DP, but realize that merely with left and right bound parameter is insufficient for determining an answer, because if the leftmost tree is falling to the left, we need to know the direction of the falle…

CFR 596 C. Wilbur and Points ( Ad hoc )

Problem - C - Codeforces The W array given in the input serves for constraining which points can be in those positions. For any ( x, y ), its special value is y - x, and it could only be in a position i, where W[ i ] == y - x. This means, …