SNSOCIAL - Editorial

@vivekdh45
Thanks a lot…

Could anyone help me in figuring out why my solution failed to accept? I used similar approach as discussed in editorial.
Link to submitted code is https://www.codechef.com/viewsolution/14017641 . Ps:- Pls provide test case.it will be more helpful.

I tried to use a multi source bfs but the solution timed out for some reason. Could someone help me find out why it times out?

https://www.codechef.com/viewsolution/13939897

Thanks in advance.

I tried this question using 2 priority queues.First priority is sorted on the basis of value and second on the basis of time to make that cell max.I am getting WA, can anybody tell me where I went wrong.

https://www.codechef.com/viewsolution/17191459