Only one test case passing rest showing TLE. Please help
Religious People TLE
only one test case is passing rest is giving the wrong answer. How are you ensuring that the cost is minimal if ct > cr?You are building only one temple but you also have to check that the temple is built in such a city that the cost of the road from other cities is also minimum
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.