Search found 29 matches

by Spike
Mon Dec 29, 2003 10:27 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 67183

ACMIO is not a standard java class. In fact, I'd never heard of it until I looked it up on google. UVA is very picky about the classes that they support, and very behind the times. I've written some methods that do similar things to ACMIO ( check this board under "[JAVA] Useful methods to save time"...
by Spike
Sun Dec 14, 2003 11:49 am
Forum: Java
Topic: problem of String
Replies: 1
Views: 1742

Think of it as like printing on a typewriter, there are two different things that you have to do for a line to be printed. You hit enter and it takes you down to the next line. Then you push the roll back over to the other side. These commands are called line feed and carriadge return. you're escapi...
by Spike
Sun Dec 14, 2003 11:36 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49633

I've had similar errors like this using UVA's java compiler. Sometimes a program will crash or perform differently when running a command on one line instead of breaking it into seperate lines. Logically your code should be, and (using a good compiler) is the same, but their compiler must mix up cod...
by Spike
Thu Dec 11, 2003 5:25 am
Forum: Java
Topic: JAVA-Difficulties We Face
Replies: 31
Views: 26350

You have no idea

Yeah, well I got screwed by the actual ACM regional competition judge. I submitted a problem in java and I kept getting "Incomplete Output." Turns out my problem was crashing out early because I didn't make my array large enough. So we coded it out in C++ and quickly found the error. So yeah, it's n...
by Spike
Mon Dec 08, 2003 10:42 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49633

I wrapped your code in a try/catch block and had the catch do a while( true ); The purpose, well, if you're currently getting WA, then if an exception is thrown, you'll get TLE instead. But on your program, no dice. It still exits after like 1.3 seconds with WA. Looking through your code, I don't se...
by Spike
Sun Dec 07, 2003 11:09 pm
Forum: Java
Topic: ArrayList
Replies: 4
Views: 2804

I feel like a broken record. Most of the java.util functions don't work with UVA's java compiler. In addition, they are running a gcj compiler that supports some java 1.2 functions, so if it was added in 1.3 or 1.4, tough luck. It's also a pain in the butt trying to use one of the few things that th...
by Spike
Sun Dec 07, 2003 11:05 pm
Forum: Volume 103 (10300-10399)
Topic: 10307 - Killing Aliens in Borg Maze
Replies: 54
Views: 17739

This is due to poor java support of the UVA judge. java.util.Arrays and java.util.Comparator are not supported by the judge. Pretty much anything not available in Java 1.2 isn't supported, and a good portion of 1.2 isn't supported as well.
by Spike
Sun Dec 07, 2003 10:59 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 29417

This compile error is given by the judge when you try using a function that isn't recognized by their compiler. Sure enough, your code compiles fine using the standard java compiler, but the judge's Java support sucks. Note to judge: Quit upgrading your Pascal compiler and support some real java alr...
by Spike
Fri Sep 26, 2003 12:15 am
Forum: Java
Topic: Why no runtime error?
Replies: 4
Views: 2592

The problem lies with how they run the code. You're getting a wrong answer because it's printing out the error message. It doesn't throw errors back to the operating system like C or C++ code. It just keeps it in the Java environment. So basically, the only thing that the operating system sees when ...
by Spike
Tue Jun 17, 2003 6:55 am
Forum: Java
Topic: Java input file
Replies: 2
Views: 2562

Reading from a file

To the best of my knowledge, all UVA problems are reading from standard in. This problem was probably taken from an actual ACM competition, which, at least around here, read from a file. ( generally 'a.in' and so fourth ) Try solving the problem reading from standard in. Post again if you're having ...
by Spike
Tue Mar 11, 2003 11:54 am
Forum: Other words
Topic: World Finals Warmup
Replies: 16
Views: 3408

Thanks, worked.
by Spike
Tue Mar 11, 2003 11:40 am
Forum: Other words
Topic: World Finals Warmup
Replies: 16
Views: 3408

Yeah, 1:40 AM here, so what's going on?
by Spike
Tue Mar 11, 2003 11:38 am
Forum: Other words
Topic: World Finals Warmup
Replies: 16
Views: 3408

Grr... no clarifications either...
by Spike
Tue Mar 11, 2003 11:31 am
Forum: Other words
Topic: World Finals Warmup
Replies: 16
Views: 3408

World Finals Warmup

I can't view problemset. It says 404 Not Found. Anyone else have this problem?
by Spike
Tue Dec 17, 2002 2:14 pm
Forum: Volume 7 (700-799)
Topic: 739 - Soundex Indexing
Replies: 39
Views: 13734

Yeah, problem seems pretty straight forward, but I keep getting WA... [java] class Main{ public static void main( String[] args ){ //0123456789012345678901234567890123456789012345678901234567890123456789012345678901 String idx = "ABCDLMR***EPST*N****IFK*******OVG*******UJ********YQ********WX********...

Go to advanced search