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

> But writing A < B from the beginning would have been better.

That would need me to think about it more than I did. ;-)

> Without calculating the numbers for both interpretations, it's not possible

That's how the Weekly Challenge often works. Sometimes, even the examples don't give enough clues and people come with different interpretations. That's part of the fun.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^5: Faster (but uglier) PWC 350-2 solutions
by LanX (Saint) on Dec 09, 2025 at 19:17 UTC
      > What you wrote has no solution. ;)

      It was fixed after a short while.

      > (FWIW I would have chosen B = A * k )

      Mohammad will be happy if you submit anything!

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        > Mohammad will be happy if you submit anything!

        Ha, ha, ha ... touché! :-)

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