← All problemsSign in

Choosing Problems

Flippy the Bird has proposed n problems for the MCO qualifiers. He has labelled the problems from 1 to n. Fluffy the Squirrel has reviewed the problems, and assigned a difficulty rating di for each problem. The contest problems must have consecutive problem numbers. This means that the contest problems must have labels x, x + 1, ..., y for two positive integers x and y. He believes a contest is ba

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start