Possibly Useful CP Information #3: Min/Max Abuse

Правка en1, от greateric, 2026-06-12 04:15:33

Wanted to share an idea that comes up reasonably often in my opinion. Essentially, you can take advantage of some property of the minimum or maximum of an array or some other structure to construct/calculate the answer starting from there.

2129B/2130D — Difficulty: 1600

Hint 1
Hint 2
Hint 3
Answer

2067D — Difficulty: 1900

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7
Answer

1852B/1853D — Difficulty: 1800 on CF, 2000 on CList, definitely feels more like a 2000 to me

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Answer

2234E (just 2 contests ago!) — Difficulty: 2100

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Answer

How do I get better at spotting this?

Probably just practice! You'll start to remember to think about it more often and start seeing the patterns like this one.

Теги tutorial, minimum, maximum

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский greateric 2026-06-12 04:19:47 160 (published)
en1 Английский greateric 2026-06-12 04:15:33 6292 Initial revision (saved to drafts)