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 1419. Maps of the Island Worlds

Is it possible to change Time Limit?
Posted by Fyodor Menshikov 3 Jan 2007 01:25
There are two algorithms of determining a bridge in the graph: simple and advanced. Simple algorithm O(n^2) works more than 1s if written in Java, but less than 1s if written in C++.

I suggest to lower time limit to 0.5s, after that only advanced solutions O(n), (n=number of islands) will be accepted.
Re: Is it possible to change Time Limit?
Posted by diver[rus] 21 Feb 2007 01:17
My first C++ solution O(n^n) runs about 0.3sec, so i think it's useless to decrease time limit.