Comments
+54

Username checks out

How to simulate?

-8

Four

+3

Yeah

0

Why is this TLE?

TLE

Yeah

Expand the summation using prefix sums everywhere

On 300iqCodeforces Round #562, 7 years ago
0

Yeah me too

0

Notice that the function basically makes 2 adjacent numbers equal to one of them. Then, find the most frequent element and make all the numbers in the array equal to this number.

+10

What is testcase 1_03 for E?