[Community Puzzle] Brick in the Wall


Feel free to send your feedback or ask some help here!


Feature request: add a link to the puzzle.

That evil extra whitespace made my program crash :angry:


Lol. Same comment as what I said last time.

Ironically, the previous version of the bot did do that, so not sure how it came to be lost in portage.


in php,
the first loop return the same weight for all bricks…



for this problem with PHP replace these lines:

for ($i = 0; $i < $N; $i++)
fscanf(STDIN, “%d”, $m );


$m=fgets(STDIN, 1024 );

Good luck :wink:


oups sorry :-/

$m=fgets(STDIN, 4096 );

4096 for the big wall :wink: