Chef and Expired Food
CodeChefOpen on judge ↗
You have been appointed as Chef’s assistant cook at his restaurant. You are given N food packets $f1, f2, f3…fn$ where $fx$ is their id. The Chef then gives you a list of M ids that are expired $q1, q2, q3…qm$. Your task is to find all the unexpired food packets’ ids and print them in ascending order. ### Input - The first line of each input contains an integer $N$, the number of food packets. -
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