Search found 7 matches

by panda_coder
Fri Jun 19, 2009 9:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78698

Re: 10038 - Jolly Jumpers

to mf Thank you, I finally got accepted! I know it's such an easy problem, but the runtime error has really really frustrated me. I even thought that uva online judge does not simply give Java programs accept. (I know it's lame...) Anyway, since I know one of the reasons I do wrong in my program (us...
by panda_coder
Thu Jun 18, 2009 7:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78698

Re: 10038 - Jolly Jumpers

It was written back in the days when UVa used old and under-featured jdk 1.1 (or maybe it was some old gcj) Now we have jdk 1.6 in all its glory, you can just use java.io.BufferedReader, and avoid guessing maximum input line size (which you guessed wrong.) Thank you for your suggestion. I did not k...
by panda_coder
Thu Jun 18, 2009 4:19 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78698

Re: 10038 - Jolly Jumpers

I have NO IDEA why my program gets WA... Could you please look at my code? I've tried every test cases posted here. package Chap2; import java.io.IOException; import java.util.*; public class JollyJumpers implements Runnable{ static String readLine(int maxLength) { byte line[] = new byte[maxLength];...
by panda_coder
Tue Jun 16, 2009 10:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 52023

Re: 10267 - Graphical Editor

I checked all of the posts here, but I couldn't find any problem in my program. I used a recursive method, and I checked the case that X1 > X2, Y1>Y2 (the description says that (x1, Y1) is the upper-left and (X2, Y2) the lower right corner, though), I tried several test data posted here, and it seem...
by panda_coder
Mon Jun 15, 2009 4:43 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 34729

Re: 706 - LC-Display

import java.io.*; import java.util.*; public class Main implements Runnable { static String readLine(int maxLength) { byte line[] = new byte[maxLength]; int length = 0; int input = -1; try { while(length < maxLength) { input = System.in.read(); if((input < 0) || (input == '\n')) break; line[length+...
by panda_coder
Mon Jun 08, 2009 4:18 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28452

755) 487-3279 time limit exceeded...I'm desperate :(

This import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; public class Main { static class phoneNumber implements Comparable<phoneNumber>{ String phone; int count; phoneNumber(String phone, int count) ...
by panda_coder
Mon Jun 08, 2009 4:04 am
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 9746

300 MAYA CALENDER Wrong Answer......:(

I'm solving 300 Maya Calender, but I keep having wrong answer... Do you see any problem in the code below? :( I've read all of the articles about the problem..please help! import java.io.*; import java.util.*; public class P1008 { public static void main(String[] args) throws IOException{ HashMap<St...

Go to advanced search