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.
- Prepare
- Mathematics
- Number Theory
- Easy math
- Discussions
Easy math
Easy math
Sort by
recency
|
113 Discussions
|
Please Login in order to post a comment
This was kinda hard man jesus. The key insight: simplify x, factoring out every 5 and 2 from it. You have to find the smallest a such that 444... (of length a) is divided by the simplified x - you can do all these computations modulo simplified x, i.e. start at 0, multiply-by-10-then-add-4, reduce modulo simplified x until you get 0, the amt of iterations this took is the value of a. using the 2's and 5's you factored at the start (+the knowledge that the 4... number has no 5 factors and 2 2 factors) you can figure out the amt of 0s you need. Repeat this for some other values of a (up to a+b for the first pair you find) to ensure you find the one w the smallest (a+b, a) lexicographically and that's the solution.
For those who enjoy combining logic and creativity, Infinite Craft offers a similar challenge but in a dynamic gaming environment. It's a fun way to sharpen your problem-solving skills while exploring limitless possibilities. Has anyone tried integrating math puzzles within Infinite Craft's vast world? Would love to hear your experiences!
Awesome Website. Keep Up the good work. Regards,
My approach is to generate numbers for the conditions, store them in cache and But I've got a memory error: My code is here: https://github.com/Tusenka/hackerrank/blob/develop/easy_math.py `
Want to sell my commercial property cash, TX? Our professional team specializes in buying property in any condition, offering fair prices and fast closings. Whether you're facing foreclosure, dealing with an inherited property, or simply need to move quickly, we buy houses McAllen TX homeowners want to sell. Contact us today for a hassle-free process and get a cash offer on your property within 24 hours. For details must visit: https://www.capitaladvisorstx.com/press/sell-commercial-property-in-texas