How to remove run time error in it actually it is theater problem of codechef please just remove the run error my code is right

hey @kailash_01,
I’d suggest you to explain your aprroach…

The approach can be first taking all the requests and then checking for the number of requests for each show (at all showtimes), ordering them in decreasing order and then keeping the price from 100,75,50,25 from most demanding to least demanding movie and then check all possible permutation for best solution.
Hope it helps
:slight_smile: