### spotless's blog

By spotless, 10 years ago,

I'm getting WA in test 1 and here's the judge respone :

The submission ID :

Test: #1, time: 30 ms., memory: 42328 KB, exit code: 0, checker exit code: 1, verdict: WRONG_ANSWER
Input
hhoowaaaareyyoouu

Output
wre
wre
Checker Log
wrong answer 1st words differ - expected: 'wre', found: 'wre'

• +1

 10 years ago, # |   +2 Can you post your code in pastebin.com and give link?
•  10 years ago, # ^ | ← Rev. 7 →   +1 Here it's : http://snipt.org/xsnp
•  9 years ago, # ^ |   +3 I had the same problem. In output was unwriteable symbol.
 10 years ago, # | ← Rev. 3 →   +1 It seems like your program printed extra NULL characters.UPD: As NULL characters are "invisible", you saw such strange log message from the judge protocol.UPD2: Oh I am wrong to show the code for explanation. But you can view the output in some editors (e.g. vim) that there are extra characters.
•  10 years ago, # ^ | ← Rev. 2 →   +1 aha ... That was because I initialized the char array with the same length as the input .. I thought that the constructor of the string would handle it for me or the judge will ignore it or at least give it at a later index not the 1-st character .. anyway, got it Acc .. Thanks alot :)
•  10 years ago, # ^ |   +1 You are welcome. Actually this shows that the string you get from the character array is indeed having extra NULL characters.
•  10 years ago, # ^ |   +1 Yes I saw it before you remove it from the first post :D :D :D
 » 9 years ago, # |   0 shater