## Search found 32 matches

Wed Dec 15, 2004 8:58 am
Forum: Java
Topic: Why don't show the Compilation Error Message from the gcj?
Replies: 3
Views: 3135
i would be... euphoric... if they update the compiler...
currently they are using a compiler that supports up to J2SDK 1.1...
if they update to atleast 1.2, atlease with the BigInteger class, many problems can be sloved within milliseconds!
Tue Nov 30, 2004 12:01 pm
Forum: Algorithms
Topic: Lists that might be useful [Prime, Fibonacci]
Replies: 1
Views: 1170
hmm... the list of Fibonacci Numbers from 0~10000 is 10 megs...
http://r-pai.com/fib5000.txt
P.S. my listing might be different from yours...
Tue Nov 30, 2004 11:54 am
Forum: Algorithms
Topic: Lists that might be useful [Prime, Fibonacci]
Replies: 1
Views: 1170

### Lists that might be useful [Prime, Fibonacci]

heres a list of primes from 2~1,000,000 http://r-pai.com/primes.TXT
and the number of digits of the N'th Fibonacci Number from 0~10000 http://r-pai.com/fib.txt
soon i will put on a list of Fibonacci Numbers from 0~10000
Tue Nov 30, 2004 11:36 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 30900
pity those using java...
java does have bigint, but the UVA java stoneage compiler does not support it
btw... the fibonacci number for 500 is 1046 digits
Fri Nov 26, 2004 5:43 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29577
Holy mother of god! I think your only mistake is choosing the wrong language for this problem. :-) Somebody correct me if I'm wrong, but Java's NumberFormat by default rounds 0.5 to the nearest even number (which is 0), and printf() rounds up (which is 1). Since changing double to long double gives...
Fri Nov 26, 2004 5:34 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29577
Did you read my previous posting? It's impossible to get accepted in Pascal, and my strong impression is that it's also impossible to get accepted in Java. To date there are 599 people that got accepted, non of them with Java or Pascal. Rewrite your code in C or C++. shame, becuase i have spent soo...
Thu Nov 25, 2004 10:44 pm
Forum: Java
Topic: Useful Method to Format Decimals (BETA)
Replies: 0
Views: 2069

### Useful Method to Format Decimals (BETA)

Try it, it formats a double to a certain decimal place you want method description: FormatDecimal(String in, int dec) in = input, must be a double into a string dec = number of decimal places FormatDecimal(Double inp, int dec) inp = input, must be a double dec = number of decimal places [java]import...
Thu Nov 25, 2004 10:25 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29577
someone wanna check my code??? btw... formatting decimals in java is a pain in the ass [java]import java.io.IOException; import java.util.StringTokenizer; import java.text.NumberFormat; class Main { static String ReadLn(int maxLg) { byte lin[]=new byte[maxLg]; int lg=0,car=-1; try { while(lg<maxLg) ...
Tue Nov 23, 2004 2:10 am
Forum: Off topic (General chit-chat)
Topic: What kinds of problems do you solve most ?
Replies: 25
Views: 76154
anything pre-calculateable
and any problem that does not have a long, lame description
Tue Nov 23, 2004 2:06 am
Forum: Java
Topic: TO THE ADMINS OF UVA
Replies: 1
Views: 2238
i totally agree, in addition, scale the cpu time by jave by 3~10 times, since it does runs slower compared to other languages
Thu Nov 18, 2004 5:46 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31129

### 488 WA odd...

[java]import java.io.IOException; import java.util.StringTokenizer; class Main { static String ReadLn() { byte lin[]=new byte[25]; int lg=0,car; try { while(true) { car=System.in.read(); if ((car<0)||(car=='\n')) break; lin[lg++]+=car; } } catch(IOException e) { return(null); } if ((car<0)&&(lg==0))...
Thu Nov 18, 2004 6:55 am
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 7298

### 386 what is wrong

[java]for(int i=6;i<=200;i++)
{
for(int j=2;j<i;j++)
{
for(int k=2;k<=j;k++)
{
for(int l=2;l<=k;l++)
{
if(i*i*i==(k*k*k+j*j*j+l*l*l))
{
System.out.println("Cube = "+i+", Triple = ("+l+","+k+","+j+")");
}
}
}
}
}[/java]
Tue Nov 16, 2004 11:22 pm
Forum: Java
Topic: Formatting decimal numbers in Java
Replies: 6
Views: 5903

### Formatting decimal numbers in Java

Are there any effective ways of formatting decimal numbers (double) in pascal?
Eg: 3.1245114411 -> 3.12 or 3.125, etc....
Tue Nov 16, 2004 11:21 pm
Forum: Pascal
Topic: Fornatting Decimal in Pascal
Replies: 3
Views: 8049

### Fornatting Decimal in Pascal

Are there any effective ways of formatting decimal numbers (double) in pascal?
Eg: 3.1245114411 -> 3.12 or 3.125, etc....
Tue Nov 16, 2004 2:54 am
Forum: C++
Topic: GCC in windows
Replies: 3
Views: 2158

### GCC in windows

how would i install the GCC C++ compiler in windows XP Professional