We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I managed to solve the problem on the Project Euler webpage.
However my solution are decimals like: 0.33333333333 for the example given here (with 1 as input).
How is it possible to recover the rational expression (fraction of integer a/b) from my result to then express it in the weird modulo formulation as asked in the problem statement?
I'm confused
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #232: The Race
You are viewing a single comment's thread. Return to all comments →
I managed to solve the problem on the Project Euler webpage. However my solution are decimals like: 0.33333333333 for the example given here (with 1 as input). How is it possible to recover the rational expression (fraction of integer a/b) from my result to then express it in the weird modulo formulation as asked in the problem statement? I'm confused