Possibly Useful CP Information #3: Min/Max Abuse

Revision en2, by greateric, 2026-06-12 04:19:47

I'm writing this while there's a tornado warning at Purdue but I refuse to die until I reach orange

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.

Tags tutorial, minimum, maximum

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English greateric 2026-06-12 04:19:47 160 (published)
en1 English greateric 2026-06-12 04:15:33 6292 Initial revision (saved to drafts)