Search found 1 match

by Ray Carter
Mon Oct 25, 2004 9:14 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320465

100 Time Limit Exceeded [Using JAVA]

I've tried using C++ with the same algorithm,and got AC.
But when using JAVA,always time exceeded:

Your program has used more time (10.094 seconds) than the maximum allowed
for this problem by this judge (10 seconds).

Anyone can tell me how to shorten the time??

[java]import java.io.IOException ...

Go to advanced search