Search found 7 matches

by ymgve
Mon Sep 28, 2009 8:14 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 17154

Re: 11686 - Pick up sticks - possible in Java?

That doesn't answer the question, though. If you have to reinvent data structures that are already in the language, you're not focusing on the right part of the problem.
by ymgve
Sun Sep 27, 2009 11:01 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 17154

11686 - Pick up sticks - possible in Java?

Hi, I'm trying to do the Pick up sticks problem and wonder if it's possible to do in Java with normal data structures. Just using one ArrayList for each node already gives me a TLE. Any suggestions?
by ymgve
Fri Sep 25, 2009 9:32 am
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 8143

Re: 11666 Logarithms WA again and agian

Yeah, StringBuffer did the trick. But I feel the time limit is still too close. The largest problem seems to be that formatting strings in Java is quite slow, and there is no easy way of achieving the same combination of rounding and number of decimals as String.format(). It would be more ideal if ...
by ymgve
Thu Sep 24, 2009 6:31 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 8143

Re: 11666 Logarithms WA again and agian

Is this even possible to do in Java? I just get TLE:

Code: Select all

accepted
by ymgve
Sun May 03, 2009 7:31 pm
Forum: Volume 102 (10200-10299)
Topic: 10278 - Fire Station
Replies: 59
Views: 31688

Re: 10278 - Fire Station

Here's 1 more tricky test case, where the correct output is 1 even though there's already a fire station there. So don't immediately reject any intersection that already has a fire station. Be careful on TLE though, because after making this change my code went from 1sec to 6sec.

1
1 2
1
1 2 0 ...
by ymgve
Sun Nov 16, 2008 8:03 pm
Forum: Bugs and suggestions
Topic: Judge is down?
Replies: 4
Views: 2330

Re: Judge is down?

Same problem here - submission is stuck in queue.
by ymgve
Mon Nov 03, 2008 11:41 pm
Forum: Bugs and suggestions
Topic: "You are not authorised to view this resource." errors
Replies: 5
Views: 5361

"You are not authorised to view this resource." errors

When I click on a problem ID in either the "My Submissions" page or "My statistics page", I get a "You are not authorised to view this resource." error message. The problem seems to be that URLs from those pages are of the form

http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com ...

Go to advanced search