Page 1 of 1
How to deal with really BIG numbers in JAVA?
Posted: Mon Nov 08, 2004 11:21 pm
by .pandre.
[java] Does anyone know of any way to deal with those really BigNumber problems in JAVA?
Thank you[/java]
Posted: Wed Nov 10, 2004 10:44 am
by Maniac
Yes, I do. Make your own BigInteger class and use that

See other threads to find out how to implement a BigInteger class
Posted: Wed Nov 10, 2004 10:54 am
by .pandre.
Maniac wrote:Yes, I do. Make your own BigInteger class and use that

See other threads to find out how to implement a BigInteger class
You mean you can submit several classes in the same file (like this:
class Xpto {
int atribute one;
int atribute two;
...
Xpto() {
}
public int methodOne() {
}
}
class Ypto{
public static void main(String args[]){
//code here
}
}
?
Does'nt this give you any error from the judge?
Anyway thanks a lot for your help
Posted: Wed Nov 10, 2004 11:00 am
by Maniac
Yes you can submit several classes in the same file and that is exactly what you should do
Note that:
- you can't use inner classes cause Java 1.1 (or the stone age version the UVA Judge uses) doesn't support them
- your main class should still be called Main and that one must contain the public static void main method.