ADITYA AND ANUSHMAN LUCK
CodeChefOpen on judge ↗
Once Aditya and Anshuman loved same girl (Geet). But now they have decided that they will not ruin their friendship for a girl. So they decided to play a game. This game is started with n blocks. They may or may not have different sizes. In one move :- - A Player will choose one block and remove it. - Player will add length of that block to his points - If length of that block is greater than 1 h
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