Chef and Chocolate
CodeChefOpen on judge ↗
As we know, Chef has a party and he has many chocolates in which some chocolates are of the same type. He wants to give the chocolates to his friends as perfect gift. i.e. if each friend gets at-least one unique chocolate. Help Chef to find the maximum number of perfect gifts. ###Input: - First-line will contain $T$, the number of test cases. Then the test cases follow: - Each test case
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