[Community Puzzle] Brick in the Wall


#1

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


#2

Feature request: add a link to the puzzle.

That evil extra whitespace made my program crash :angry:
image


#3

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.


#4

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


#5

Hi

for this problem with PHP replace these lines:


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

by:

$m=fgets(STDIN, 1024 );

Good luck :wink:


#6

oups sorry :-/

$m=fgets(STDIN, 4096 );

4096 for the big wall :wink: