OneClickAC's blog

By OneClickAC, history, 8 years ago, In English

Hi , I have just started learning about graphs to enjoy the world of competitive programming even more and I was trying to solve a problem on graphs 20C - Dijkstra? .

I submitted my code and now its failing on test 31 as you can see in my submission 25347179 . I even tried various ways to get to know why this is happening . I*I even used n=37 , m=36 and then used same data as given in test case 31 , the output that I was getting was correct . I even thought that , it might be because of this long long thing but still I am not getting the GREEN ACCEPTED result .

Will be really good if someone from codeforces community helps me in finding why my code is failing .

  • Vote: I like it
  • +4
  • Vote: I do not like it

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

You should use LLONG_MAX instead of LONG_MAX for const ll mod.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Thanks Bedge for rectifying such a mistake , for which I should not have disturbed you and other people . :|