Ad
  • Custom User Avatar

    I have same issue, can you please help me to undertand on how to get 33 and not 34

    Much apperciated!

  • Custom User Avatar

    Didn't see that either

  • Custom User Avatar

    Look :-)

  • Custom User Avatar

    Look :-)

  • Custom User Avatar

    Could there be a problem with test 6 in the c++ version. Beacause when i try my program in dev c++ and i input the corresponding volume(1025292944081377280) of the solution(45001) it works. So i tought myself that there could be a problem. Please help.

  • Custom User Avatar
  • Custom User Avatar

    Well, the only thing to resolve your problem is to show your code, otherwise we can only guess and wonder. Or at least your logic behind it.

  • Custom User Avatar

    I know that my code could be inefficient, but the logic is not really complicated to be that slow and inefficient. Like it is 59 lines with three for's and two if statements. I am sure I have made more complicated logics that don't take so much time even with the random tests.
    It's just,... I don't know what i can optimize....

  • Custom User Avatar

    Your solution is very likely to be running an infinite loop.

  • Custom User Avatar

    It's not necessarily that your loops are infinite, more likely your code is inefficient. Random test are often extensive and resource-consuming, so odds are you need to refactor and optimize your code. That's the safest bet without knowing the code.

  • Custom User Avatar

    I have a problem. When I press run sample tests everything is ok and tests pass, but when i attempt it says that i runned out of time, so that means to me that my loops are going infinite. I wanna know how in some tests the loops are ok and in others they are infinite. Or maybe it times out for a diffrent reason, I don't know. Will appreciate every help.

  • Custom User Avatar

    Thanks for the help. I didn't saw that. Now I'll try again. :)

  • Custom User Avatar

    There is enough information in the description. Review it and imagine the scenario.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Loading more items...