Ad
  • Custom User Avatar

    Sample and fixed tests should use exact expected values instead of rounded to 5 decimal places ones.

  • Custom User Avatar

    It doesn't matter how much you increase the margin. The user can always take the (input, expected output) pair and hardcode the equation based on that.

  • Default User Avatar

    I updated the expected precission.

  • Custom User Avatar

    The current precision requirement (1e-2) is so lenient that a simple approximation based on the two given test cases passes all tests. I suggest increasing the required precision to 1e-6, which should be easily reached with any solution based on the correctly derived closed-form solution.

  • Custom User Avatar
  • Default User Avatar
  • Custom User Avatar

    Hi,

    • fixed tests must be added before the random ones (use those in the sample tests)
    • the result (mass of tnt) is expressed in kg, not in tons, in the expected result (hence, the description is incorrect). edit: scratch that, the description is consistent...
    • the answer relies on the fact that the target is at the same level than the cannon (and ofc, that there are no obstacle) => that should be added to the description.

    Cheers

  • Default User Avatar

    Was fun to lookup some basic physics