Search found 3 matches

by MetaBrain
Tue Jul 28, 2009 8:37 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27408

Re: Simple Java output Question for 458

The input to this problem is not ASCII, it may contain bytes with codes greater than 127.

Your code works with Unicode codepoints (Java's "char" type), but non-ASCII bytes may represent different codepoints, depending on file's encoding. You should either find out how to do binary I/O in Java ...
by MetaBrain
Tue Jul 28, 2009 8:03 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27408

Re: 458 - The Decoder

That char3 is the ETX that my C program puts when compiled and ran... :-?

I think I understood, thanks ! I'll try to do that and report back ;)
by MetaBrain
Tue Jul 28, 2009 6:34 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27408

Re: Simple Java output Question for 458

Before we start, I did it in Java in 5 mins but always WA... So I did same thing in C and got AC... :evil:

But I don't understand why I get WA, so I put both of em in Notepad++ and the only diference was the End of Line chars.
My C version always made ETX+LF, and the Java one only CR... So I tried ...

Go to advanced search