Page 5 of 5

Re: 128 - Software CRC

Posted: Tue Feb 10, 2015 10:48 pm
by anacharsis
Has anyone gotten this one to work using Java?
It looks like the judge is running a lot of input through this one, and I am timing out.
I've tried a whole slew of different stream readers.
I'm thinking about trying NIO next...

Re: 128 - Software CRC

Posted: Wed Feb 11, 2015 9:17 pm
by brianfry713
Yes people have solved it using Java.
Try using BufferedReader and BufferedWriter.

Re: 128 - Software CRC

Posted: Wed Feb 11, 2015 10:10 pm
by anacharsis
Thanks for the response!
I had already actually tried that.

It turns out the bottle neck was not in reading the inputs.
It was in Java's printf() implementation.
I rolled my own hex formatter and just got accepted.

Learn something new everyday... :)