Ad
  • Custom User Avatar

    this is incorrect. random test can provide numbers of the list in the description itself that are not apple.
    69 and 94 are examples that seem to regularly hit errors.

  • Custom User Avatar

    can someone explain why explicit conversion is needed?
    there is a + operator defined in the byte struct, why is it not used in a + b?

    i guess byte are implicitly converted to ints, but how to use the byte + operator then?

  • Custom User Avatar

    I dont understand, what am I approximating?
    I just use f and push the values until it fits.

  • Custom User Avatar

    Something is wrong. My Solution does not use init value

  • Custom User Avatar

    what does this mean? is identical not near?

    Expected must be near: .0000024999968750, but got: .0000024999968750
    Test Failed
    Expected: True
    But was: False

  • Custom User Avatar

    I understand description such that 111,112,113,114,115 has greater than 100% average, is that so?

  • Custom User Avatar

    I wanted to know which combination of 135 elements from [R,S] does one need to get to the result 161453 when s = 829
    This is one example of the first test in attempt. I can not compute 161453

    If you take
    RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRS
    you get 112744

    If you take
    RRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRSRRSRSRSRSRSRS
    you get 160825

    and no solution in between seems to fit aswell

  • Custom User Avatar

    s=829, t=135
    what is the RRRS combination to get 161453?
    I dont see it

  • Custom User Avatar

    You need to include a test like {ab,ba,c}
    My solution is fake for this reason, maybe for more.

  • Custom User Avatar

    or just remove the test for negative number. In think in that case you dont need an explanation. You return 0 anyways in that case, so nothing to gain from it

  • Custom User Avatar

    VB, does the description differ in the languages?

  • Custom User Avatar

    instructions didnt say anything about negative values. Obviously if you include those the solution of every input has to be negative infinity.
    I think you dont need to mention it in general, but it tests for a negative value explicitly, so you have to make assumptions.

  • Custom User Avatar

    I dont understand why is 2E-13 correct solution for first test?

  • Custom User Avatar

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

  • Custom User Avatar

    Once your guests yell "happy birthday" on your 100th birthday, you are in fact older than 100 years.
    A century is meant to contain 100 years

  • Loading more items...