ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1505. Oil Transfer

WA 26
Posted by Lomir 6 Nov 2007 03:18
First i had WA 20, because of wrong apporach, now WA 26...
Maybe somebody have some test ar now something similar to this testcase.

Btw, I am using dijkstra from source to sink with backegde cost of zero. Or this is also wrong?
Re: WA 26
Posted by Fox 12 Apr 2008 18:36
I was getting WA26 when use this declaration for "INFINITE" constant:

const __int64 INF = (__int64)1e17;

... when I change it for next one:

const __int64 INF = 10000....... ;

I get AC!