Блог пользователя Ahmed_Salama

Автор Ahmed_Salama, 13 лет назад, По-английски

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


The submission ID : 431231.

Test: #1, time: 30 ms., memory: 42328 KB, exit code: 0, checker exit code: 1, verdict: WRONG_ANSWER
Input
hhoowaaaareyyoouu
Output
wre
Answer
wre
Checker Log
wrong answer 1st words differ - expected: 'wre', found: 'wre'
  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

13 лет назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится
Can you post your code in pastebin.com and give link?
13 лет назад, # |
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.
  • 13 лет назад, # ^ |
    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 :)

»
11 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

shater