Ad
  • Default User Avatar

    In overview - result should be:

    "Original_Balance:_1000.00
    125_Market_125.45_Balance_874.55
    126_Hardware_34.95_Balance_839.60
    127_Video_7.45_Balance_832.15
    128_Book_14.32_Balance_817.83
    129_Gasoline_16.10_Balance_801.73
    Total_expense__198.27
    Average_expense__39.65"

    In test result expected:

    Original Balance: 1000.00\r
    125 Market 125.45 Balance 874.55\r
    126 Hardware 34.95 Balance 839.60\r
    127 Video 7.45 Balance 832.15\r
    128 Book 14.32 Balance 817.83\r
    129 Gasoline 16.10 Balance 801.73\r
    Total expense 198.27\r
    Average expense 39.65

    So, how is it?

  • Default User Avatar

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

  • Default User Avatar

    Because I passed it with another variant.

  • Default User Avatar

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

  • Default User Avatar

    disgusting Kata. Not about programming. About mathematics only.

  • Default User Avatar

    Yes, indeed. I just didn't completely understand the description. Thank you.

  • Default User Avatar

    It seems like a mistake.
    Because when we have an array [2,3,4] and 2 machines, we are expected a result = 13, right?
    But I don't think so.
    Time that we needed is 11 = > 2m + 3m (for two customers), after that, for example, the first machine takes 2m for a cleaning. And in the end we have to plus 4m (3td customer).
    2 + 3 + 2 + 4 = 11.