Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
how is that one only 4kyu
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
, andDecimal
.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...
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 !!!
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
You can use it
No: Since
int
s 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.There's this one which I tried some time ago and timed out, it seems right up your alley.
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.
sorry you didnt like it. maybe do a different one. definitely don't leave an unnecessarily rude comment though.
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.
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...
Just solved your kata, that one's more difficult for sure :)
BIO stands for "British Informatics Olympiad". Type that in instead.
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.
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...