← All problemsSign in

Dishes Anomaly

Chef Po is organising a grand party. This time Chef wanted to show off his cooking skills to his guests so he decided to cook N dishes which will cover the dinner table of size A x B such that N=A x B. Chef wanted all his dishes to be different but because of his over confidence K dishes out of N were made similar. Now there is no time left for Chef to prepare new dishes so he is only left with th

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