Preparing Problem set
CodeChefOpen on judge ↗
You have $n$ problems. You have estimated the difficulty of the $i-th$ one as integer $c$$i$. Now you want to prepare a problem set for a contest, using some of the problems you've made. A problem set for the contest must consist of at least two problems. You think that the total difficulty of the problems of the contest must be at least $l$ and at most $r$. Also, you think that the difference be
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.
Sign in to chat with the tutor and save your progress.
Sign in to start