tweety's blog

By tweety, 10 years ago, In English

Output: aedcbf. Answer: aedcbf. Checker comment: wrong answer 1st words differ : expected: 'aedcbf', found: 'aedcbf' http://codeforces.net/contest/525/submission/10478241

:/

Tags bug
  • Vote: I like it
  • +82
  • Vote: I do not like it

| Write comment?
»
10 years ago, # |
  Vote: I like it +1 Vote: I do not like it
  • »
    »
    10 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I submitted it again using GNU C++ compiler and got the same problem. I don't know how it worked with you.

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

      Igorjans code and yours differ in one line. Take a close look REP(i, 0, size(str) — 1) ... versus REP(i, 0, size(str)) in your code.

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

        That fixed it. Thank you a lot!

»
10 years ago, # |
  Vote: I like it +71 Vote: I do not like it

"Expected doge, found doge"

I was laughing for a minute :D

»
10 years ago, # |
  Vote: I like it +17 Vote: I do not like it

I think extra "\0" causing problemoo. :D (string str="hello";//str="hello\0")

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

The picture is so damn good, i can't stop laughing.

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

So much 3tees