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 1254. Die Hard

My program get WA #4. Give me some tests, please
Posted by Roman Lipovsky 13 Oct 2004 18:51
My program get WA #4. Give me some tests, please.
This is main part of my solution:

    L := 0;
    read(S.y,S.x);
    for i := 1 to k do begin
        read(F.y,F.x);
        cL := BFS(S,F);
        if cL=-1 then
            Continue;
        S := F;
        L := L+cL;
    end;
    L := L/V;
    write(L:0:2);