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 1004. Sightseeing Trip

Then how can I improve my program?
Posted by Huang Yizheng 15 Oct 2001 18:43
I think the floyd algorithm is very simple and can't be
imporved,and I have to do it (N-2) times (because k>2,so
the loop consists of at least 3 nodes,(N-2) is enough and
also it's nessary,I think it's difficult to let it be
quicker.My program uses over 8 secs,I wonder why so many
people make their program so fast that cost nearly no time.