← All problemsSign in

Alice and Puzzle

Now Alice is infront of the headquarter of Umbrella Corp. She needs to find the password of the main door inorder to get inside. There is a poster beside the door showing a puzzle the answer to which is the password. The puzzle says - You are given several queries. In the i-th query you are given a single positive integer ni. You are to represent ni as a sum of maximum possible number of composite

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