in reply to Re: Google Code Jam 2019 Round 1A Problem 1: Pylons
in thread Google Code Jam 2019 Round 1A Problem 1: Pylons

Feel free to solve the problem. Knight's moves aren't enough for some grid sizes.

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

Replies are listed 'Best First'.
Re^3: Google Code Jam 2019 Round 1A Problem 1: Pylons
by LanX (Saint) on Apr 14, 2019 at 22:13 UTC
    > Knight's moves aren't enough for some grid sizes.

    which sizes bigger 4x4?

    It's a bit more complicated, but since it's an open competition I don't wanna reveal too much.

    > Feel free to solve the problem.

    no time to code this at the moment.

    (you know mathematicians are like eunuchs ... ;)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    update

    see here