Ad
  • Custom User Avatar

    ... I'm mocking the easiness of the kata in a comment that ends with ':^)' which is there to indicate -a very obvious- sarcasm. I obviously have used this site and know how kyu works.

    see also: https://en.wikipedia.org/wiki/Emoticon#Creation_of_:-)_and_:-(

    Why did I even need to explain this? Why did anyone even pay attention to this easily dismissible comment?

  • Custom User Avatar

    that is the joke. (see the ":^)")

  • Custom User Avatar

    this should be a 1 kyu kata :^)

  • Custom User Avatar

    I should've clarified I'm using c++. Still, as I said all types of rounding screw up by 1 second in a random test. Tortoises might not care about fractions but the tests do. This issue is not solved.

  • Custom User Avatar

    the first example case shows a time needed of 32 minutes and 18 seconds which is correct if you just round it but that's not how the world works. The exact time needed is 32 minutes and 18.48 seconds which makes the minimum time needed in integer minutes and seconds 32 minutes and 19 seconds, not 18.
    Edit: This rounding issue is not just an issue but an inconsistency. A round() should work as the example suggests but it fails on random cases and the physically accurate ceil() fails aswell.