aajjbb's blog

By aajjbb, 12 years ago, In English

Hi, I'm failing on test case #31 in the problem Dijkstra? from Codeforces Alpha Round #20 (Codeforces format) Link to the Problem, but I'm not able to test it locally because the test case is too big, it's hidden in the submit link.

There's a way to see this full test ? The problem itself is tricky, asking for a as fast as possible Dijsktra implementation, can you guys see what's wrong with this code ? Code

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

»
12 years ago, # |
Rev. 3   Vote: I like it +6 Vote: I do not like it

Length of the shortest path can be (n - 1)·w = 1011, which fits long long but is greater than your INF.

Probably, the 31st test has answer with answer  = 109.

»
12 years ago, # |
Rev. 5   Vote: I like it +1 Vote: I do not like it

You have to increase your INF

UPD:Too slow

1904852

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you.. but, extending the discussion, there's a way to see the full length of this big test cases ? It would be helpful.

    • »
      »
      »
      12 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      AFAIK, there are no way to see it.

      But It's usually not important.

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    enlarge your INF 100 times natural way proven method every problem likes it OK just after 2 days of using