bjorng

bjorng

Erlang Core Team

I get the answer 3251 for your input.

Here is my solution.

1
Post #11
NobbZ

NobbZ

My solver has a much lower result of 3253.

0
Post #12
theshank

theshank

@bjorng @NobbZ Strange… I suppose that the outputs of both of your codes was accepted… and they are giving different outputs for the same input… Anyways, thanks for the quick reply. I will go through your programs and try to find why I am getting a much higher output (and even @sasajuric’s answer is giving the same).

0
Post #13
NobbZ

NobbZ

Yes, it generates a solution which is accepted for my own input.

Your input though discovered a bug in my code to find the bounding box, I was missing a clause in the giant case/2 beginning on line #46 of y2018/d6.ex, which actually reminds me that I wanted to rewrite that one anyway.

0
Post #14
theshank

theshank

Will you be rewriting it anytime soon?

0
Post #15
NobbZ

NobbZ

Not this year. My wife and my son are in the kitchen, preparing Berliner, I do play a bit with my 2 years old to keep her out of the kitchen for now :slight_smile: and of course, as a side-job we prepare the diner-table for the big “table-grill” tonight.

0
Post #16
theshank

theshank

oh yes right, sorry! Happy New Year !

1
Post #17
NobbZ

NobbZ

The change was much quicker to do than I expected, and also my wife and kids are in the bath now, as the dough has to rest.

It doesn’t change the result for your input,. nor mine.

0
Post #18
bjorng

bjorng

Erlang Core Team

Yes, the output of my code was accepted for my input.

Was neither 3251 nor 3253 accepted? Was there any hint whether the answers were too low or too high?

0
Post #19
NobbZ

NobbZ

Crosscheck, my code does return 5508 for your input. Is this close to your answer?

0
Post #20