← All problemsSign in

Obama and Gift

Barrack Obama is going to leave the white house soon. He has received a lot of gifts N in his tenure some of which he would like to take. But there are many gifts of each type and he would like to take at least one gift of each type. The total type of gifts are 7. Each gift is represented by 3 integers :- Type of the gift (1 to 7), Price of the gift (p[i] ), Quality of the gift (q[i]). Obama c

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