Online or Offline
Chef is confused whether to go out and eat at the restaurant or order food online. The online order costs $N$ rupees while the cost of eating at the restaurant is $M$ rupees. However, Chef has a discount coupon with which he can avail flat $10\%$ off on his online order. Find the cheaper option for Chef to eat, i.e., whether to order food online or eat at the restaurant. ### Input - The first
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