Point 5 Restaurant
CodeChefOpen on judge ↗
You have entered a magical Restaurant called “ Point 5. ” Here you have $N$ number of dishes ; each dish has a price. However, the rules of ordering the dishes is very unique. The rules are : 1.) You can order ONLY one dish. 2.) All the dishes with price less than or equal to the half of the price of the dish ordered, will automatically become free and will be placed on the table for you (includ
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