Author Topic: Advent of Code  (Read 112599 times)

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #325 on: 19 December, 2016, 09:12:23 am »
As is part 2 but slightly different as it is not continuous as a quick simulation of the first 45 parties shows (from 5-99 elves)
(click to show/hide)


Very pleased to have solved it elegantly without needing to brute force it.
"By creating we think. By living we learn" - Patrick Geddes

Ben T

Re: Advent of Code
« Reply #326 on: 19 December, 2016, 10:51:12 am »
day 19 part 1:
(click to show/hide)

Ben T

Re: Advent of Code
« Reply #327 on: 19 December, 2016, 01:10:50 pm »
day 19 part 2:
(click to show/hide)

Ben T

Re: Advent of Code
« Reply #328 on: 19 December, 2016, 05:53:25 pm »
generic iterator template for branch style problems
https://github.com/bjtaylor1/AoC_2016/blob/master/puzzle_iterator.h
used in day 17: https://github.com/bjtaylor1/AoC_2016/blob/master/Day17b/Day17b.cpp
part 2 runs in sub-10s in release mode with /Ox.

also works for 2015 day 19 1+2.


Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #329 on: 19 December, 2016, 07:26:42 pm »
(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #330 on: 20 December, 2016, 07:28:37 am »
That wasn't particularly challenging - or maybe I am missing something
(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

red marley

Re: Advent of Code
« Reply #331 on: 20 December, 2016, 08:07:50 am »
I agree.

(click to show/hide)

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #332 on: 20 December, 2016, 10:52:35 am »
(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #333 on: 20 December, 2016, 11:11:00 am »
(click to show/hide)

red marley

Re: Advent of Code
« Reply #334 on: 20 December, 2016, 01:07:19 pm »
(click to show/hide)

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #335 on: 20 December, 2016, 01:21:04 pm »
(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Ben T

Re: Advent of Code
« Reply #336 on: 20 December, 2016, 06:41:00 pm »
That wasn't particularly challenging - or maybe I am missing something
(click to show/hide)

(click to show/hide)

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #337 on: 20 December, 2016, 10:19:38 pm »
I was looking at the problem and thinking that it maps onto a typical biological problem 'which parts of my gene have no sequence coverage?'

I'm not sure there is a specific tool for that - I'd probably write a similar script +/- the parsing of appropriate formats.
"By creating we think. By living we learn" - Patrick Geddes

Ben T

Re: Advent of Code
« Reply #338 on: 21 December, 2016, 12:37:24 pm »
Day 21 relies on realising the fact that
(click to show/hide)

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #339 on: 21 December, 2016, 12:49:58 pm »
Not done it yet. Broadband outage at home so I have sneaked into the office to get it onto the PC. Will look at it tonight, but it doesn't seem so hard.
Not looked at the spoilers either.
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #340 on: 21 December, 2016, 01:29:39 pm »
What's happening to Jo"s leader board ? Some mischievous anonymous user(s) having fun ?

Re: Advent of Code
« Reply #341 on: 21 December, 2016, 01:41:52 pm »
 ::-)  <tries to look innocent and not childish>

Re: Advent of Code
« Reply #342 on: 21 December, 2016, 01:53:17 pm »
::-)  <tries to look innocent and not childish>
LOL... I just popped over to the CDC thread...and you've beaten me to it !!

red marley

Re: Advent of Code
« Reply #343 on: 21 December, 2016, 02:33:50 pm »
Anonymous user 107436 needs to get their act together and get a nice silver star for Day 14.

Re: Advent of Code
« Reply #344 on: 21 December, 2016, 02:46:36 pm »
Yeah, I couldn't decide about that pixel.  A spurt would take too many rows, and I'm already norty flagged on github now.

Just for you, jo.

red marley

Re: Advent of Code
« Reply #345 on: 21 December, 2016, 03:12:54 pm »
Day 21 relies on realising the fact that
(click to show/hide)

Or

(click to show/hide)

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #346 on: 21 December, 2016, 04:41:06 pm »
(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #347 on: 21 December, 2016, 05:37:49 pm »
Day 21 relies on realising the fact that
(click to show/hide)

(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #348 on: 21 December, 2016, 09:02:49 pm »
Day 21 relies on realising the fact that
(click to show/hide)

(click to show/hide)
From 5 onwards your rotation is wrong. 

Sent from my SM-G920F using Tapatalk

"By creating we think. By living we learn" - Patrick Geddes

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #349 on: 21 December, 2016, 11:57:50 pm »
Ok, guilty of not reading the instructions. Fortunately I could grab the data at work today but have to enter the answers with the phone as I currently have no broadband. So slightly delayed but now there.

Sent from my SM-G920F using Tapatalk

"By creating we think. By living we learn" - Patrick Geddes