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.
Gets the job done in the real world but it doesn't test your skills
This comment is hidden because it contains spoiler information about the solution
if these are all numbers within the limits of maximum integers for variables a, b which Python can hold in a variable - computationally, it is the most efficient solution, isn't it?
yeah
As Azuaron-senpai stated, with bigger numbers your algo is quite far from being optimal; I think 6000ms are not even enough to make a single test (out of 50) with the largest numbers.
Your algorithm is too slow. The inputs can be very large, so you really don't want to calculate the values.