in reply to Re^2: Faster (but uglier) PWC 350-2 solutions
in thread Faster (but uglier) PWC 350-2 solutions

None of the examples involve finding A given B, but that just means they work either way. But to me the problem statement is clear: "the number of integers $i in the range $from <= $i <= $to that belong to at least $count different shuffle pairs".
  • Comment on Re^3: Faster (but uglier) PWC 350-2 solutions

Replies are listed 'Best First'.
Re^4: Faster (but uglier) PWC 350-2 solutions
by LanX (Saint) on Dec 10, 2025 at 02:05 UTC
    See, different interpretations!

    All examples list the smallest A first. And B = A * k is explicit about k being an integer. For the other way k would need to be a fraction.

    Let's agree that only God knows. (and probably Choroba ;-)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery