Ad
  • Default 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?

  • Default User Avatar

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

  • Default User Avatar

    Something is wrong. My Solution does not use init value

  • Default 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

  • Default User Avatar

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

  • Default 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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default 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

  • Default User Avatar

    VB, does the description differ in the languages?

  • Default 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.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default 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

  • Default User Avatar

    wtf? A century spans from 0 to 99.99...

  • Loading more items...