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.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. All Contests
  2. ProjectEuler+
  3. Project Euler #213: Flea Circus
  4. Discussions

Project Euler #213: Flea Circus

Problem
Submissions
Leaderboard
Discussions

Sort 5 Discussions, By:

votes

Please Login in order to post a comment

  • Borthralla
    4 years ago+ 1 comment

    For output a/b, does it want a*b mod (10^9 + 7)? It says Q^(-1) which is confusing because ab^(-1) = a/b.

    4|
    Permalink
  • maxkh
    4 years ago+ 1 comment

    Can somebody clearify output format?

    It says P X Q(-1) mod (10^9 + 7), which makes very little sense as sample output is just single number, e.g. if I try 1.0000 instead - it will be wrong. Plus as number of cells is restricted to 40 x 40, final result will never be over 1600; which makes mod statement somehow reflecting precision of result.

    Please, help.

    1|
    Permalink
  • ashuwp
    4 years ago+ 2 comments

    Dynamic Programming times out. Must be a better way.
    Markov Chains ?

    0|
    Permalink
  • khalid_t
    4 years ago+ 0 comments

    Adjacent squares are squares that share an edge.

    0|
    Permalink
  • mvanwoerkom
    4 years ago+ 2 comments

    Why are there at most fleas per cell in the sample?

    0|
    Permalink

No more comments

Need Help?


View top submissions
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature