Blind love
CodeChefOpen on judge ↗
Spaesk, the ruler of Sugarland loved his fiancé asuna. Spaesk wanted to impress her in every possible way, asuna being fond of jewellery, Spaesk decided to attack his rich neighbour for their gems. Spaesk has an army of n men. Most of his men are lazy and their laziness is denoted by a laziness factor ’L’. Each member has to collect different jewels. The time taken to collect each jewel can b
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