Hello guys,
I had problem with judge, when I wrote the code to read input like this:
public static void main(String[] args) {
try {
Reader r;
if ( args.length > 0 ) {
r = new FileReader( new File(args[0]) );
} else {
r = new InputStreamReader( System.in );
}
BufferedReader br = new BufferedReader( r );
...
} catch ( Throwable t ) {
t.printStackTrace();
}
}
I used it for testing (to read input from file).
It seams that testing framework passes some arguments to java program and testing returns WA then.
Maybe it helps someone.