Atcoder contest 366 Problem E

Revision en2, by SeniorLikeToCode, 2024-09-06 20:45:48

Problem Link

while solving this question I can not visualize ho this part actually work

f(x) = f(x — 1) + (no. of element <= x) — (no. of element > x)

using this idea then we apply sliding window to find the answer.

Need some clarity or better editorial for this question.

taging people who I know make tutorials. aryanc403 Shayan

Tags #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English SeniorLikeToCode 2024-09-06 20:45:48 23 Tiny change: 'aryanc403][user:Shay' -> 'aryanc403] [user:Shay'
en1 English SeniorLikeToCode 2024-09-06 20:45:18 454 Initial revision (published)