Ok its not getting submitted

i did some changes and it is doing grt for the sample test case but not getting submitted plz help

the issue is with the output format, you are printing distance from 1 to n, but you only have to print distance to required edges. Check the reference code below. Dijk code is correct.

the code you shared
even that is not getting submitted

it’s getting submitted on my side.


Just add an endl,after every query.
Also your previous dij doubt is also with me, you can ask me about that too.

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.