← All problemsSign in

Popcorn Buying

Chef has gone to see a movie. Chef has $X$ ($X \ge 100$) rupees with him. The movie ticket itself costs $100$, and Chef must buy one movie ticket to be able to see the movie. With the money leftover, Chef will buy as many popcorn buckets as possible. A single popcorn bucket costs $50$ rupees. How many popcorn buckets will Chef be able to buy? ### Input - The first and only line of input contai

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