Chef and midsems
CodeChefOpen on judge ↗
Problem Statement Chef has exams coming up , he has taken up N subjects this semester. The subjects are numbered from 1 to N. He needs atleast M average marks to pass this semester. He has limited time to study , at each hour he can choose a subject i to study and that increases the amount of marks he is going to get in that subject by C[i]. For each subject it is known that if chef doesn't st
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