Search found 32 matches

by randomtaiwanese
Wed Dec 15, 2004 8:58 am
Forum: Java
Topic: Why don't show the Compilation Error Message from the gcj?
Replies: 3
Views: 3109

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!
by randomtaiwanese
Tue Nov 30, 2004 12:01 pm
Forum: Algorithms
Topic: Lists that might be useful [Prime, Fibonacci]
Replies: 1
Views: 1152

hmm... the list of Fibonacci Numbers from 0~10000 is 10 megs...
so instead i uploaded a list from 0~5000, 2.5megs...
http://r-pai.com/fib5000.txt
P.S. my listing might be different from yours...
by randomtaiwanese
Tue Nov 30, 2004 11:54 am
Forum: Algorithms
Topic: Lists that might be useful [Prime, Fibonacci]
Replies: 1
Views: 1152

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
by randomtaiwanese
Tue Nov 30, 2004 11:36 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 29746

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
by randomtaiwanese
Fri Nov 26, 2004 5:43 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29181

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...
by randomtaiwanese
Fri Nov 26, 2004 5:34 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29181

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...
by randomtaiwanese
Thu Nov 25, 2004 10:44 pm
Forum: Java
Topic: Useful Method to Format Decimals (BETA)
Replies: 0
Views: 2052

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...
by randomtaiwanese
Thu Nov 25, 2004 10:25 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29181

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) ...
by randomtaiwanese
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: 75834

anything pre-calculateable
and any problem that does not have a long, lame description
by randomtaiwanese
Tue Nov 23, 2004 2:06 am
Forum: Java
Topic: TO THE ADMINS OF UVA
Replies: 1
Views: 2217

i totally agree, in addition, scale the cpu time by jave by 3~10 times, since it does runs slower compared to other languages
by randomtaiwanese
Thu Nov 18, 2004 5:46 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 29865

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))...
by randomtaiwanese
Thu Nov 18, 2004 6:55 am
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 6960

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]
by randomtaiwanese
Tue Nov 16, 2004 11:22 pm
Forum: Java
Topic: Formatting decimal numbers in Java
Replies: 6
Views: 5844

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....
by randomtaiwanese
Tue Nov 16, 2004 11:21 pm
Forum: Pascal
Topic: Fornatting Decimal in Pascal
Replies: 3
Views: 7992

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....
by randomtaiwanese
Tue Nov 16, 2004 2:54 am
Forum: C++
Topic: GCC in windows
Replies: 3
Views: 2123

GCC in windows

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

Go to advanced search