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.
Loading...
  • Practice
  • Compete
  • Jobs
  • Leaderboard
  • Hiring developers?
  1. All Contests
  2. ProjectEuler+
  3. Project Euler #90: Cube digit pairs
  4. Discussions

Project Euler #90: Cube digit pairs

  • Problem
  • Submissions
  • Leaderboard
  • Discussions

Sort 4 Discussions, By:

votes
  • recency
  • votes

Please Login in order to post a comment

  • georeth2010 2 years ago+ 0 comments

    Dice with different orders are considered as the same variant. (die1, die2) = (die2, die1).

    n=10 m=3 ans=294197

    2|
    Permalink
  • kitchent 2 years ago+ 0 comments

    Hint: Generating all combinations of 3 dices works for this problem in Python. At first I thought there must be some other approach to pass all test cases, but it turns out if you find the right way to implement your combinations loop which avoids iterating through duplicate choices of dices, it would be fine.

    0|
    Permalink
  • Ved5288 2 years ago+ 1 comment

    Hey

    When there are more than 1 cube into consideration and say for the first cube the number of possibilities are 70 and for the second cube the number of possibilities are 126.

    Shouldn't the number of distinct arrangements be 70*126. I am bit stuck up at this point. Can someone give me a sample testcase for more than one cube in consideration

    0|
    Permalink
    • jeekobu 6 months ago+ 0 comments

      A careful reading of the example shows that the dice are not in fixed position, e.g. one die has 0 so must be first for 01, but (only) the other die has 1 (so the other die is first for 16).

      0|
      ParentPermalink
  • govarthanan 4 years ago+ 0 comments

    variants means

    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