Ad
  • Custom User Avatar

    Issue with the PHP tests:

    These incorrectly replace multiple consecutive input or output characters (, & .) with just a single putchar / getchar call.

    This is incorrect, as while reading multiple bytes from input would only store the last, it would still consume multiple bytes.

    Same goes for the output: the written character would be the same each time, but it would still be written twice.

    (The interpreter in the tests would print Helo, World!, with just a single 'l', for example).

    I could get my solution to pass by implementing the same error, but that is obviously not right.

    Edit: Just noticed hotdonkey already reported this 9 months ago...

  • Custom User Avatar

    I thought of this when I looked at kyu level again after having a timeout error. No way you need to use algos for this level.

    timeout error + 8 kyu = there's a simple brutforce

  • Custom User Avatar

    For the C translation, the tests expect us to return a newly-allocated character string, but never frees it. I know it doesn't free it now because the initial solution returns a statically allocated string instead and doesn't break the allocator.
    A change to the function's interface or the initial solution would allow the tests to free the returned string instead of wasting that memory.

  • Custom User Avatar
  • Default User Avatar

    The tip for C: more memory,very more

  • Default User Avatar

    completely changes the output? i dont even know how it gets the output its getting, i even tried changing compiler to match theres, and it outputs the correct answer

  • Default User Avatar
  • Custom User Avatar
  • Default User Avatar

    ummmmm Expected: equal to "*p += 4;
    "
    Actual: "*p += 4;"

  • Custom User Avatar
  • Custom User Avatar

    JS fork, please review:

    • use Chai;
    • use lodash and replace Test.randomNumber() % 8 by _.random(0, 7);
    • define and use an assertStrictEqualPretty function (thanks to @Hobovsky) for large inputs (but there's still a problem with the ~1MB input).
  • Custom User Avatar

    GOD ! there are lots of talented people in here . I would never even think of this .

  • Custom User Avatar
  • Default User Avatar

    In description it is told that repeated "." and "," commands must act like repeated commands

    1. . command must be replaced by putchar(*p);\n.
      Example:
      ".." -> "putchar(*p);\nputchar(*p);\n"

    However to pass random tests i had to combine them to one.
    "...." -> "putchar(*p);\n"
    So there is either missleading description or tests.

  • Custom User Avatar

    I have same error and I don't know what is wrong.

  • Loading more items...