Split the Bill
CodeChefOpen on judge ↗
Aman and Aditi were out on a dinner, they plan to split the bill in a fair Manner, Each person get's to eat one dish of their own choice while the other dishes will be shared among them. They have to pay full amount for the dish they ate and none for the dish that was ordered by the other person, however, the remaining amount should be divided among the two of them. ###Input: - The first lin
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