Sort by

recency

|

113 Discussions

|

  • + 0 comments

    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.

  • + 0 comments

    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!

  • + 0 comments

    Awesome Website. Keep Up the good work. Regards,

  • + 0 comments

    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 `

  • + 0 comments

    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