vsanjay_nitdgp's blog

By vsanjay_nitdgp, history, 9 years ago, In English

SIR/MAM,'

TODAY I WAS SOLVING THIS QUESTION,,

HERE IS MY SUBMISSION.. >> http://codeforces.net/contest/199/submission/13427391 <<

I GOT WRONG ANSWER IN 84th TEST CASE FOR THIS PROBLEM >> http://codeforces.net/contest/199/problem/D <<

PLS HELP..THANKS IN ADVANCE...

THANK YOU..

  • Vote: I like it
  • -22
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +2 Vote: I do not like it

What do you want?

You can see the test and you can read the tutorial of the problem here:link

»
9 years ago, # |
  Vote: I like it +2 Vote: I do not like it

In this problem you want the shortest way out, dfs does not give you the shortest path. you should use dijkstra or bfs.