comp.lang.ada
 help / color / mirror / Atom feed
* advent of code day 10
@ 2020-12-11  3:39 Stephen Leake
  2020-12-11  5:40 ` Jared Summers
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephen Leake @ 2020-12-11  3:39 UTC (permalink / raw)


This was a more interesting puzzle. It is almost "sort, find consecutive
skips, multiply by n choose k", but not quite.

I cheated; the final total is larger than 64 bits, so I just printed out
the factors and used Emacs built-in bignums to compute it. I assume
there is an Ada bignums package out there, and the compiler has one that
full Ada 2020 will expose, but I'm trying to catch up, so did not look.

-- 
-- Stephe

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-12 22:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11  3:39 advent of code day 10 Stephen Leake
2020-12-11  5:40 ` Jared Summers
2020-12-11 17:04   ` Stephen Leake
2020-12-11  7:22 ` gautier...@hotmail.com
2020-12-11 14:14 ` gautier...@hotmail.com
2020-12-12 20:17   ` Stephen Leake
2020-12-12 22:25     ` Jeffrey R. Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox