← All problemsSign in

Chef and letters

The chef has $N$ letters with him. Each letter contains the name of the person who sent it. He wants to choose 3 letters such that the following conditions are met:- 1. Selected letters must be from the person whose name start with $A$,$C$,$M$,$H$ or $R$. 2. All three selected letters have to be from a different person. How many such ways are there to choose three letters, disregarding order?

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