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.
OP solved it, closing
You should optimize your code :) I faced the same problem and did homework - optimized my loops to decrease timings. So after that I've passed "Attempt" tests too.
Time: 4788ms Passed: 50Failed: 0
Use
print(some_value, flush = True)
I'm passing all "test" cases. But "attempt" cases are hanging without even printing (m & n) for any case (up to timeout).
Can you please check if "attempt" cases are working as expected.
Thanks
Divisors are counted only once.
This comment is hidden because it contains spoiler information about the solution
I am a novice python developer, so I used all that I know. Thanks for your advise about "isinstance", I will read about this feature.
Did you consider using
isinstance(s, str)
instead oftype(s).__name__ != "str"
?This comment is hidden because it contains spoiler information about the solution