Note: The text editorials will be provided by the authors of the round. This video tutorial acts as an additional resource for those who prefer video over text, not as a substitute for the text editorial.
2070A — FizzBuzz Remixed
Video
2070B — Robot Program
Video
2070C — Limited Repainting
Video
2070D — Tree Jumps
Video
2070E — Game with Binary String
Video
Am I the only one who thought that in C you need to find the SUM of penalties?
me also bro and wasted almost one hour
-100 elo or so just because I forgot to read
If you think like this, you need to use simulated cost flow, wqs binary, and use line segment trees to prevent running timeouts, which is a bit difficult for a C problem.
also do i ^.^
no, you are not alone... π π
but i realised quickly
I initially thought D was a combinatorics problem and got WA several times, but now I see it's actually DP.
D is easier than usual and I'm completely stuck by the problem E. I try to guess the conclusion, but failed finally.
In problem C, after reading the problem statement Minimum Maximum Penalty I thought of using Binary Search because I just remembered it XD. However, during the contest, I was unable to prove the monotonicity. Can someone please explain the monotonicity before applying binary search to me?
FOR 2070D — Tree Jumps
I know it's a DP question, but I approached it more like a combinatorial problem and got a WA as a result. I want to understand why I got WA. Can anyone provide a test case where my approach fails or explain the reason behind it?
308241176
When could the text editorial be visible awa?
I can not think of a way to understand A intuitively, except when I use chines remainder theorem that for a system of congruent (in this case 2 equations) with co-prime moduli (3 and 5), then we always have a unique solution mod 3*5 = 15. Then we can think of if we traverse i from 0 -> 14 and for each i, we have a = i mod 3 and b = i mod 5 then the pair(a, b) will be unique in range [0, 14] and this pair only repeat each interval of 15.
=> We just need to find the pairs of form (a, a) in the first interval from 0 -> 14 (only 3 of those which are 0,0 1,1 and 2,2), and for each pair (a,a) it will repeat each 15 based on the theorem.
Problem B doubt
def s_extend(s, n, k):
t = int(input())
for i in range(t):
For problem B, how can you optimise further ?? Got TLE on Test 1 last input.