Does anybody know why I got compile error for this one? It worked on my machine... :-?
[java]
import java.io.*;
import java.util.*;
class Main
{
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line ...
Search found 4 matches
- Sun Feb 23, 2003 2:49 am
- Forum: Volume 1 (100-199)
- Topic: 155 - All Squares
- Replies: 11
- Views: 3882
- Mon Feb 17, 2003 6:30 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116564
- Sat Feb 15, 2003 6:30 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317849
Never mind.....
Oh well. I finally figured it out by my own.....
Here's some pointers for those who are trying to solve this problem!
If you are using java, make sure you see this points:
Your class has to be called Main and it must not be public!!!!
Your static class MUST be public! This is my bug.
You cannot use ...
Here's some pointers for those who are trying to solve this problem!
If you are using java, make sure you see this points:
Your class has to be called Main and it must not be public!!!!
Your static class MUST be public! This is my bug.
You cannot use ...
- Fri Feb 14, 2003 7:01 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317849
Problem 100 Java Wrong Answer?
Can anybody see what's wrong with this code? :(
[java]
//@BEGIN_OF_SOURCE_CODE
// @JUDGE_ID: 28212NH 100 Java "Easy algorithm"
import java.io.*;
import java.util.*;
class Main {
static String readLine () // utility function to read from stdin
{
int maxLg=255;
byte lin[] = new byte [maxLg ...
[java]
//@BEGIN_OF_SOURCE_CODE
// @JUDGE_ID: 28212NH 100 Java "Easy algorithm"
import java.io.*;
import java.util.*;
class Main {
static String readLine () // utility function to read from stdin
{
int maxLg=255;
byte lin[] = new byte [maxLg ...