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.
Well, that's how every
BigInteger/Decimal
class/module in many languages work.If you want to pass an exact value into their constructors, you gotta pass it in as a string.
This comment is hidden because it contains spoiler information about the solution
I guess he passed in the argument like this and so it didn't work:
???
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Good pick. The problem comes from Python (same with Ruby) conversion of "float" to "rational". I changed my solution and re-published it to get correct results but I suppress the case (1.85, 60) in order not to invalidate all the already passed solutions. With Python (and Ruby) Fraction(1.85) is (4165829655317709, 2251799813685248) instead of (37, 20)... Thanks for your post!
This comment is hidden because it contains spoiler information about the solution
spoiler flags, please! (visible from the dashboard!)