Ad
  • Custom User Avatar

    Good :) Now you know you need to find a radically different approach. Maybe it's better to focus more on the representation that on the number.

  • Custom User Avatar
  • Default User Avatar

    I think that with that input, it will take a long time to be solved...

    I tried with the input 123416523 and it took (37.97 secs, 74,454,731,984 bytes) to get the solution, which by the way is: 68961984

    I see that this problem has exponential time to be solved, related to how big the input is...

    • For example:
      • if the input is 12341652, it takes (3.81 secs, 6,917,976,752 bytes), but
      • an input which is one digit greater (fo example: 123416523) makes the solution time to go to (37.97 secs, 74,454,731,984 bytes)
  • Custom User Avatar

    We don't know what you are doing.

    Maybe the random test are wrong or only I

    If you don't know, why raise an issue?

    All the random tests in Python (I assume you are using this language) just do this :

                test.assert_equals(nines(n), reference_solution(n), f"With n = {n}")
    

    Just like fixed tests do stuff like this

            test.assert_equals(nines(3950), 1035, "With n = 3950")
    

    Please be more specific, and however don't raise issues if you don't know.

  • Custom User Avatar

    Bruh this one this entirly broke first i get a error in rust thats not from my code "called Option::unwrap() on a None value at src/lib.rs:6:29"
    and in python i get Execution Timed Out (12000 ms) please fix it.
    both passes test but not in attempt

  • Custom User Avatar

    6kyu 4Head 4Head 4Head

  • Custom User Avatar

    Nah, im too dumb to solve this. Some kind of math problem. xD

  • Default User Avatar

    up to 100 you have: 9, 19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99... so there are 19 number with at least one 9....

  • Custom User Avatar

    How long does it take on your other platform to compute the result for input 123416523412365217623567890987654321?

  • Default User Avatar

    Same issue here... I can run the code on other platform and it works just fine, but I get the timeout error here... I think that the issue is for big numbers, because it takes more than 12 seconds to get the solution. :(

  • Custom User Avatar
  • Custom User Avatar

    Asked a mathemetician and google for a formula for this, both had no clue. HOW IS THIS ONLY 6 KYU???

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Guys, if you find how to deal with this error, mention here plz

  • Custom User Avatar

    i have same error. I dont know way to solve this :)

  • Loading more items...