_LT_zyc's blog

By _LT_zyc, 11 years ago, In English

Test: #19, time: 30 ms., memory: 18116 KB, exit code: 0, checker exit code: 1, verdict: WRONG_ANSWER

Input BBYUVCIYLNUJPSEYCAAPQSDNSDDTNEHQZDPBEKQAWNAKEYFBNEEBGPDPRLCSVOWYDEDRPPEDOROCHRCNQUSPNVXGRXHNLKDETWQC BQCQXCAHADGJHBYIKEUWNXFUOOTVCCKJPJJCMWLAWWKSDGHFNZTCPSQNRTPCBLXDTSJLRHSCCZXQXCVLVGTROOUCUQASIQHZGNEI

RYE

Output

BBYUVCJPCASDNTPQNBDRLVROOCQSGNE

Answer

BBYUVCJPCASDNTPQNBDRLVROOCQSGNE

Checker Log

wrong answer Line [name=answer] equals to "

Why I got wrong answer. **** Can someone tell me the difference between answer and output. **** Problem 346B Lucky Common Subsequence ** 4545895**

  • Vote: I like it
  • -20
  • Vote: I do not like it

»
11 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Probably because you have an error in you program.

void dfs(int i,int j,int k){
    if(i==-1 && j==-1) return ;

Should it be if (i <= 0 || j <= 0)?

p.s. about the difference of the correct answer and your output: try to run your code on your own machine and see what your program will produce as output.

  • »
    »
    11 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks,I have found my mistake.My program will print ASCII(0),so I can not find the difference,but it does exactly exist.

»
11 years ago, # |
Rev. 7   Vote: I like it 0 Vote: I do not like it

http://mirror.codeforces.com/contest/346/submission/4546292

UPD Your output was a[0] (== 0) + correctanswer.