anthay / Advent-of-Code-2017

Advent of Code 2017 solutions in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My solutions to Advent of Code 2017 questions. Blog post here.

catchpa.cpp has all 49 solutions, as I originally wrote them.

january.cpp has all 49 solutions with added commentary and some tidying and speeding up.

Output of january.cpp executable on a 2017 intel i9-7900X CPU @ 3.3GHz:

 1.1   0.00ms 1390
 1.2   0.00ms 1232
 2.1   0.00ms 47136
 2.2   0.00ms 250
 3.1   0.00ms 371
 3.2   1.00ms 369601
 4.1   2.01ms 455
 4.2   2.00ms 186
 5.1   1.00ms 358309
 5.2  42.15ms 28178177
 6.1   3.02ms 7864
 6.2   3.00ms 1695
 7.1   3.01ms fbgguv
 7.2   3.97ms 1864
 8.1   2.01ms 4066
 8.2   2.01ms 4829
 9.1   0.00ms 15922
 9.2   0.00ms 7314
10.1   0.00ms 5577
10.2   1.00ms 44f4befb0f303c0bafd085f97741d51d
11.1   0.00ms 812
11.2   0.00ms 1603
12.1   4.01ms 130
12.2   4.01ms 189
13.1   0.00ms 3184
13.2  23.10ms 3878062
14.1  58.15ms 8106
14.2  56.16ms 1164
15.1 182.43ms 577
15.2 306.86ms 316
16.1   2.01ms hmefajngplkidocb
16.2  16.05ms fbidepghmjklcnoa
17.1   0.00ms 640
17.2  12.03ms 47949463
18.1   0.00ms 3188
18.2   0.00ms 7112
19.1   1.00ms ITSZCJNMUO
19.2   0.00ms 17420
20.1  10.03ms 457
20.2  29.08ms 448
21.1   0.00ms 188
21.2  68.14ms 2758764
22.1   0.00ms 5570
22.2  97.30ms 2512022
23.1   0.00ms 3969
23.2   0.00ms 917
24.1  95.29ms 1940
24.2 122.37ms 1928
25.1  37.10ms 2794
25.2   0.00ms <nothing to do>
total execution time 1191.29 milliseconds

About

Advent of Code 2017 solutions in C++


Languages

Language:C++ 100.0%