Comments
On szilb → Codeforces Round 1030 (Div. 2), 18 months ago
0

My intuition is to "shift" the original array, like:

1234, 2341, 3412

It couldn't complete in 2 flip. Instead, we can get a "reversed and shift" array by 2 flip:

1234
flip [1234] = [4321]
flip [1] and [234] = [1][432]
flip [12] and [34] = [21][43]
flip [123] and [4] = [321][4]

And some of them even cheat for rating, it's crazy.
Who want to hire a master of cheating??

0

Totally understand why you scared, after I checked your submissions. Because you solved E on the first try, but failed on test 1 for 5+ times on D.

On PvPro → Codeforces Round 1026 (Div. 2), 18 months ago
0

s_i < t_i means no cycle, so we can visit checkpoints in order, I guess?
Not sure how to solve if there was a cycle.

I'm newbie, but E is the most interesting binary search problem I've ever seen.