Chef and his quest for a date
CodeChefOpen on judge ↗
Chef while sitting at a coffee shop sees a girl making horizontal and vertical lines on a rectangular sheet of paper and then doing some counting. Chef being a maths freak, gathers courage and walks up to the girl to inquire what she is upto. The girl tells Chef that she has been given an arduous task of making M and N number of horizontal and vertical lines respectively on the sheet of paper and
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