← All problemsSign in

Chefs Theatre

As the government of Chefland has announced that movie theatres will be starting soon. So the chef thought to open a theatre, he decides that the theatre will be a rectangular hall with $N*M$ seats and the prices for each row will vary as follows: Row 1: $1 per seat Row 2: $2 per seat Row 3: $3 per seat $.$ $.$ $.$ Row n: $n per seat But he has to follow, a new guideline for sitting arrang

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