Search found 5 matches

by tmnq
Wed Dec 05, 2007 5:02 pm
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 32974

10515 - TLE How could this be??! ;-(

import java.util.*; public class Main { static boolean isZero(String s) { for (int i=s.length()-1; i>=0; i--) { if (s.charAt(i)!=48) return false; } //if (Integer.parseInt(s)!=0) return false; //if (s.length()==1 && s.charAt(0)==48) return true; return false; } public static void main(Strin...
by tmnq
Tue Oct 23, 2007 4:25 pm
Forum: Java
Topic: Input data - Compile Error
Replies: 4
Views: 4444

Thank you chunyi81.
by tmnq
Mon Oct 15, 2007 5:03 am
Forum: Java
Topic: Input data - Compile Error
Replies: 4
Views: 4444

Thanks a lot Darko.

I still wonder normally how people input an integer/double/string in this situation? We even need to write a small routine, just for input?
by tmnq
Sun Oct 14, 2007 1:54 pm
Forum: Java
Topic: Input data - Compile Error
Replies: 4
Views: 4444

Input data - Compile Error

Hi all, Today I tried to submit answers to Columbus weekend Contest #4, but could not pass the "compile error". Even when I did not include any external libraries. The judges still returned me "Compile error". Here's my code: class Main { static String readLine() throws Exception...
by tmnq
Sun Oct 14, 2007 1:02 pm
Forum: Java
Topic: Restricted Function
Replies: 1
Views: 2029

I guess it's because of this line:
BufferedReader br = new BufferedReader (new InputStreamReader (System.in));

Go to advanced search