Ad
  • Custom User Avatar

    how is that one only 4kyu

  • Custom User Avatar

    An annoying but possible solution might be to make a custom int subclass that checks for oversized ints, pass in a RestrictedInt(10) along with n, and disallow integer literals

    You'd also have to ban the use of int, __class__, type, and Decimal.

    But that would make it harder than other languages...


    Edit: oops; it would still be possible to break the integer restriction using any default method that returns an int

    Too much work to replace all the builtins and ban all the importables that would return int...

  • Custom User Avatar

    For the record, do not translate beta katas as it has high probability of being a wasted effort for your side. And translating a duplicate kata is even a BIG NO NO !!!

  • Custom User Avatar

    Relly thank you for the work, but i updated the kata following Blind4Basics advice and changed form list of lists to list of tuples. If it is duplicate i havent seen the original.

    Thank you anyways

  • Custom User Avatar
  • Custom User Avatar

    No: Since ints are by default BigIntegers in Python and you cannot disallow their use please refrain from translating. We cannot upgrade the JS version to a recent Node.js version for the same reason.

  • Default User Avatar

    There's this one which I tried some time ago and timed out, it seems right up your alley.

  • Default User Avatar

    It's just that no one has approved it yet. Maybe there aren't enough Julia coders who can approve translations.

    It seems like some translations do take a long time to be approved. Some of the ones for this kata have been waiting for 17 months! I'd say the site probably needs to overhaul the whole way that translations are approved.

  • Custom User Avatar

    sorry you didnt like it. maybe do a different one. definitely don't leave an unnecessarily rude comment though.

  • Default User Avatar

    No - my solution is definitely not optimal. The testing code does take time - for my solution, it takes between 8 and 11 seconds, so it's possible a valid solution might exceed the 12 second time limit. Did you try your solution multiple times?

    Perhaps I should reduce the number of tests, but I'm a little hesitant just because there are so many possibilities that I don't want an invalid solution to sneak through. It's difficult to judge exactly what is best here.

  • Custom User Avatar

    Hey, glad you enjoyed the kata.

    As for the suggestion: I tried to stick to the IWF rules and regulations. See 3.3.3.8: every bar should be loaded with collars. Do you know of any specific practical situations where you'd leave off the collars ?

    I'd say the last kata in the barbell series is a bit more difficult than this one. It's not focussed on performance though...

  • Custom User Avatar

    Just solved your kata, that one's more difficult for sure :)

  • Custom User Avatar

    BIO stands for "British Informatics Olympiad". Type that in instead.

  • Custom User Avatar

    I tried looking up BIO 2017, but I didn't find anything about questions from the BIO 2017 convention, and the AP biology 2017 free-response questions didn't look to have a question like this.

  • Custom User Avatar

    I tried that at first but no it's not fast enough. The solution is mathematical but the logic behind it is derived from pattern spotting. I recommend looking at the mark scheme for this question in BIO 2017, that helped me solve this.

  • Loading more items...