← All problemsSign in

DATING A GIRL

Problem description. Abhishek is taking a girl from his office to a date but he lacks money. Unfortunately this is not the first time something like this has happened, and reason is obvious - Abhishek goes out on way too many dates. He makes up his mind to solve this problem just before the date starts and he starts planning for it. He wants a limit for the total expense on any date and tries to

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