Animesh practices some programming contests
CodeChefOpen on judge ↗
As you know, Malvika has created some **n** programming contests. Each of the contests has three problems, categorized as easy, medium, and hard on difficulty level. For the **i**th contest, the easy problem takes **TE[i]** hours and gives you **PE[i]** pleasure. Similarly, the medium problem takes **TM[i]** hours, gives **PM[i]** pleasure, and a hard one has the values **TH[i]**, **PH[i]**. Toda
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