Search found 4 matches

by dag
Tue Mar 06, 2007 2:53 am
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33310

Again - what is the thing you are posting? Is that the output of your program? Can you describe how you test your solution (in detail)?

And - having the latest JDK doesn't help here - I am compiling it in Eclipse to target 1.3. Java here is 1.1, but 1.3 is the lowest Eclipse can do.

Anyway - I ...
by dag
Sat Mar 03, 2007 1:21 am
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33310

I am not sure what you posted there.

I copied your Main.java, I just made 2 cases out of that sample one, and it crashes. Maybe you misunderstood something, but this is what the input file would look like:

2

2
2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 ...
by dag
Fri Mar 02, 2007 3:25 pm
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33310

Interesting... that compiles? Why are you implementing Runnable if you are running a single thread? Hm, I have to check if I can use threads after all...

Anyway - I haven't checked your code, but WA with Java might mean anything on UVa, including Run Time Error. [EDIT] It crashes with more than ...
by dag
Fri Mar 02, 2007 3:07 am
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33310

10205

Hi, I am a Java user and have absolutely no idea why I get WA.

I would really appreciate it if somebody could tell me if there is any test case that makes this code work improperly.

Thank you

import java.io.*;
import java.util.*;

class Main implements Runnable{
static String ReadLn(int ...

Go to advanced search