Chef and Chocolates
CodeChefOpen on judge ↗
Chef is fond of chocolates. So he goes to his Uncle’s shop who is one of the best coders in Code Chef. As the chef asked for chocolates he gave him one simple task to solve so that he can get as many chocolates he wants. Here is the task: There is an integer $N$ for which it can form the following pattern: $N$=$5$ * * * * * * * * * * * If $N$=$7$ * * * * * * * * * * * * * * * * * * * Now your
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