Chef and Strange Fear
CodeChefOpen on judge ↗
Chef gets scared in the exam if he sees a question containing a description of more than $10$ lines and leaves the exam hall and due to this, he is not able to perform well in his exams. Cheffina is very brave and always reads all the questions very carefully including constraints specified in the description. Cheffina is chef's best friend and she decides to give him a question which she believes
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