commit 589554e5ed5a2e4b844c3b21ad793e2b0e541d34 Author: zongor Date: Mon Dec 2 23:08:24 2024 -0500 day 1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..3a86e7b --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Advent of Code 2024 diff --git a/elixir/.formatter.exs b/elixir/.formatter.exs new file mode 100644 index 0000000..d2cda26 --- /dev/null +++ b/elixir/.formatter.exs @@ -0,0 +1,4 @@ +# Used by "mix format" +[ + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] +] diff --git a/elixir/.gitignore b/elixir/.gitignore new file mode 100644 index 0000000..657689f --- /dev/null +++ b/elixir/.gitignore @@ -0,0 +1,26 @@ +# The directory Mix will write compiled artifacts to. +/_build/ + +# If you run "mix test --cover", coverage assets end up here. +/cover/ + +# The directory Mix downloads your dependencies sources to. +/deps/ + +# Where third-party dependencies like ExDoc output generated docs. +/doc/ + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez + +# Ignore package tarball (built via "mix hex.build"). +advent_of_code_2024-*.tar + +# Temporary files, for example, from tests. +/tmp/ diff --git a/elixir/README.md b/elixir/README.md new file mode 100644 index 0000000..4c9e7b8 --- /dev/null +++ b/elixir/README.md @@ -0,0 +1,21 @@ +# AdventOfCode2024 + +**TODO: Add description** + +## Installation + +If [available in Hex](https://hex.pm/docs/publish), the package can be installed +by adding `advent_of_code_2024` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [ + {:advent_of_code_2024, "~> 0.1.0"} + ] +end +``` + +Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) +and published on [HexDocs](https://hexdocs.pm). Once published, the docs can +be found at . + diff --git a/elixir/lib/day1.ex b/elixir/lib/day1.ex new file mode 100644 index 0000000..fb785ca --- /dev/null +++ b/elixir/lib/day1.ex @@ -0,0 +1,36 @@ +defmodule Day1 do + def part1(file_path) do + file_path + |> File.read!() + |> String.split("\n") + |> Enum.map(&String.split/1) + |> Enum.filter(fn list -> length(list) == 2 end) + |> Enum.map(fn [a, b] -> {String.to_integer(a), String.to_integer(b)} end) + |> Enum.unzip() + |> Tuple.to_list() + |> Enum.map(&Enum.sort/1) + |> Enum.zip() + |> Enum.map(fn {a, b} -> abs(a - b) end) + |> Enum.sum() + end + + def part2(file_path) do + file_path + |> File.read!() + |> String.split("\n") + |> Enum.map(&String.split/1) + |> Enum.filter(fn list -> length(list) == 2 end) + |> Enum.map(fn [a, b] -> {String.to_integer(a), String.to_integer(b)} end) + |> Enum.unzip() + |> Tuple.to_list() + |> Enum.map(&Enum.sort/1) + |> (fn [list1, list2] -> {list1, Enum.frequencies(list2)} end).() + |> (fn {list1, freqs} -> + list1 + |> Enum.map(&{&1, Map.get(freqs, &1, 0)}) + |> Enum.filter(fn {_, count} -> count != 0 end) + |> Enum.map(fn {value, count} -> value * count end) + end).() + |> Enum.sum() + end +end diff --git a/elixir/lib/day2.ex b/elixir/lib/day2.ex new file mode 100644 index 0000000..5f8a112 --- /dev/null +++ b/elixir/lib/day2.ex @@ -0,0 +1,15 @@ +defmodule Day2 do + def part1(file_path) do + file_path + |> File.read!() + |> String.split("\n") + |> Enum.map(&String.split/1) + end + + def part2(file_path) do + file_path + |> File.read!() + |> String.split("\n") + |> Enum.map(&String.split/1) + end +end diff --git a/elixir/mix.exs b/elixir/mix.exs new file mode 100644 index 0000000..9ecdfe4 --- /dev/null +++ b/elixir/mix.exs @@ -0,0 +1,28 @@ +defmodule AdventOfCode2024.MixProject do + use Mix.Project + + def project do + [ + app: :advent_of_code_2024, + version: "0.1.0", + elixir: "~> 1.17", + start_permanent: Mix.env() == :prod, + deps: deps() + ] + end + + # Run "mix help compile.app" to learn about applications. + def application do + [ + extra_applications: [:logger] + ] + end + + # Run "mix help deps" to learn about dependencies. + defp deps do + [ + # {:dep_from_hexpm, "~> 0.3.0"}, + # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} + ] + end +end diff --git a/elixir/test/1/input b/elixir/test/1/input new file mode 100644 index 0000000..6192278 --- /dev/null +++ b/elixir/test/1/input @@ -0,0 +1,1000 @@ +28186 35627 +51854 34597 +19211 51032 +79370 53096 +68126 40302 +43284 25771 +80565 99650 +83151 70796 +91092 74579 +70740 98650 +45166 53096 +24309 45165 +62950 26641 +23291 91017 +56683 53851 +22308 81625 +83150 34155 +87443 91017 +56834 91784 +35159 67595 +10722 83450 +92257 23419 +15995 96671 +89901 39216 +25104 76669 +37075 56652 +15874 66083 +33493 35627 +87420 31838 +11269 91386 +92604 83450 +34888 99650 +49759 40926 +38211 27379 +93866 22096 +88205 66217 +55772 60776 +83556 78255 +22292 50829 +22487 78358 +27260 79702 +74570 90319 +27532 14353 +40720 67595 +99885 65688 +25733 53752 +12466 14411 +88402 40165 +63328 13804 +45165 62461 +24913 94225 +32251 76669 +91004 40165 +48939 45165 +98082 34561 +74569 42932 +99641 54600 +42748 22021 +23376 54490 +38706 69865 +64985 87783 +14431 78715 +37671 94814 +27425 60776 +21801 76669 +96975 33493 +56680 31838 +41265 71129 +99081 32487 +53077 82615 +54490 55624 +22649 60776 +82601 25943 +93133 96412 +77182 78358 +67827 76838 +45976 89107 +20352 89034 +28891 23800 +87739 76669 +47802 99650 +18060 28437 +65882 93980 +53343 13764 +84301 93604 +62547 93479 +79067 45165 +70139 54490 +28158 76669 +71631 39775 +36521 57540 +78928 37888 +75943 39076 +28462 60107 +95828 94225 +49768 73181 +40545 97945 +18963 74260 +17934 63046 +73054 13454 +43170 60924 +90257 28180 +99765 33493 +41380 50296 +24225 62945 +66579 73961 +73361 54622 +26339 91017 +84080 62041 +89322 54600 +84610 18344 +58420 87051 +12253 83450 +25631 91017 +71764 63533 +52908 40165 +56578 46636 +99876 61946 +43934 64469 +78242 11111 +97629 28916 +21477 91017 +97639 64456 +90978 53077 +94412 73836 +49249 96113 +92750 14411 +12961 13764 +84319 22230 +83435 78146 +48951 86109 +40258 13764 +54600 65577 +51432 53096 +11527 20394 +68196 94225 +14939 91017 +13158 39216 +62120 93587 +20939 71764 +58436 28038 +37198 31838 +59152 17554 +52958 44145 +64236 18285 +63763 56578 +40304 99650 +86564 78910 +45684 52760 +43139 61946 +99974 76669 +44698 86004 +19940 22021 +29106 78358 +60431 91386 +50880 76451 +96595 42193 +40966 73961 +64515 61946 +31081 39834 +87614 70892 +82663 54622 +73537 62994 +14125 56652 +51361 35627 +26084 35817 +82915 20069 +72409 22021 +22834 20071 +93476 83787 +63719 53096 +41505 48056 +56055 20404 +37255 99650 +33468 60776 +70472 22598 +66290 53077 +91071 67595 +30888 33173 +60826 29871 +12334 78358 +62744 69424 +85449 79500 +22333 16295 +67621 18455 +12605 90059 +32490 25835 +96639 75870 +82412 39747 +76964 60153 +60776 60776 +68837 39216 +35635 67595 +85239 14964 +15278 83450 +63581 35178 +77006 18285 +88570 80424 +61499 81689 +57466 47392 +78524 84304 +11821 53989 +62425 28916 +36264 50872 +38567 13061 +16357 45165 +17202 94451 +64290 31838 +76075 55071 +87325 40165 +93961 99650 +49866 65601 +91725 14411 +44721 18285 +44065 33493 +22521 56578 +28070 54600 +45621 54600 +54677 26913 +79647 24298 +89613 31415 +86493 13764 +16243 64218 +12832 21187 +43847 35189 +75859 54600 +69276 75826 +43251 14411 +96012 41446 +35482 35817 +45380 82383 +66801 31838 +79199 92341 +33087 70511 +40619 28916 +67655 80670 +22431 60776 +62731 54622 +29873 25771 +99354 63481 +36415 61946 +29742 94919 +64872 53077 +93028 55635 +32784 18285 +87488 68734 +56652 18285 +49968 80712 +82653 53096 +30377 24784 +40120 45165 +88404 70120 +69179 45165 +99645 67595 +44883 45165 +76320 43595 +29057 90019 +28502 61946 +73459 84304 +96354 54622 +77589 14301 +51381 54490 +40490 95808 +36023 27135 +13434 63807 +27250 35627 +13764 32845 +28229 34954 +56430 76669 +98593 63811 +11192 60776 +81601 72265 +86908 77116 +25484 82383 +31115 42206 +75124 70148 +96785 53096 +59814 85995 +17024 57255 +81701 41971 +43938 33493 +91646 33599 +96616 81828 +73270 87775 +75876 35817 +53007 83450 +39527 33975 +35936 17039 +95194 23302 +96876 80147 +68136 91386 +31253 19760 +98767 61208 +98353 86604 +13239 36264 +43374 13764 +36658 22965 +58030 84304 +42686 78358 +99419 49423 +43976 20759 +33361 47852 +23794 61946 +26896 83450 +12213 37740 +53827 49270 +71874 61946 +19394 77889 +63728 81025 +63780 72467 +34161 21317 +81832 56652 +20986 99650 +36631 48302 +60232 63009 +37744 84304 +46964 39391 +19771 14411 +75783 69365 +71727 71252 +60541 69095 +68594 30949 +51619 88697 +26797 50216 +86654 61946 +98872 53347 +20079 18807 +60408 41952 +37203 47862 +92078 43717 +94853 53096 +91937 65490 +39800 79198 +14179 50429 +21846 72768 +19081 14411 +60170 39838 +14482 36264 +61946 64811 +88464 10899 +93401 44867 +42260 53495 +92730 76838 +17708 31838 +68523 99650 +44540 95629 +12785 54490 +34598 13764 +20161 28916 +15318 67595 +67423 47864 +13951 95495 +63011 67595 +73505 61946 +22300 73685 +35181 78358 +70531 60776 +95954 57049 +65463 67851 +67270 53593 +62726 13782 +66690 72865 +99591 33493 +89300 13764 +82383 51267 +55326 56578 +66315 54622 +51554 91145 +21778 67595 +38569 71437 +25915 80353 +92411 88336 +76148 83204 +68688 61443 +78063 34003 +27804 14411 +79316 59050 +14222 22021 +83018 18197 +36304 33795 +46381 78358 +23167 99650 +73696 11314 +83569 71391 +93902 76551 +33606 35906 +30257 54600 +24956 80860 +64619 14411 +17640 56652 +22908 83696 +18954 74347 +89497 83450 +70303 76669 +37979 69814 +22661 53077 +96573 83961 +13055 85059 +73265 67595 +31927 45165 +61607 54490 +62232 53096 +68738 79113 +50586 95006 +55731 39122 +33386 31838 +20118 97657 +98794 76669 +62869 57813 +45508 91386 +29960 56652 +20228 95663 +75424 74090 +75421 30158 +82307 11086 +26488 64910 +48430 41174 +81439 63107 +68896 56652 +67511 33375 +40446 66170 +13668 68369 +83234 16181 +16929 84304 +42735 85915 +93954 22403 +98252 33493 +39418 54622 +14183 89745 +67167 68002 +88731 22021 +42317 54490 +29404 83450 +80844 31838 +43255 34866 +61762 32538 +32255 78358 +93152 25771 +42141 56578 +83740 22021 +40030 47353 +34668 14411 +46752 21905 +26196 48915 +45243 67595 +26757 56652 +13969 82383 +13148 84304 +39362 29711 +92819 31171 +12210 14411 +58671 91017 +87279 62713 +97755 92124 +77086 62944 +87094 40099 +83398 35817 +36525 64734 +27346 36264 +50274 17587 +74438 92593 +86182 13764 +63946 56578 +99269 25771 +46815 67595 +44645 93146 +82027 25771 +46981 39216 +52039 31814 +25930 54600 +48743 31838 +80123 72281 +21790 84579 +91556 78358 +63961 14411 +11280 97891 +67372 60776 +35817 34731 +80767 53877 +32458 90108 +53471 13557 +76699 92723 +33967 31838 +83166 23325 +48974 44826 +28408 16412 +18980 61946 +76595 21581 +54278 82835 +57836 67595 +16791 84304 +52746 99650 +23543 83450 +28819 95078 +21590 84304 +90588 91017 +62879 43669 +35788 81389 +67595 91386 +43342 73961 +34072 73961 +41533 54487 +77769 71151 +95215 74006 +37630 44436 +85291 18292 +82845 99650 +56633 60776 +95645 54490 +59689 14411 +77873 23174 +47892 94225 +71442 77808 +52932 56578 +68699 56652 +70296 54600 +34780 50848 +14008 63408 +65865 73961 +64689 84695 +70986 45490 +20034 54600 +21194 73961 +42510 37716 +80906 32357 +38289 19304 +44371 53386 +45873 95639 +72359 53096 +26200 40165 +81093 32591 +75520 99689 +70526 92020 +38000 90543 +42109 40526 +65858 64811 +77533 83450 +84191 63489 +59480 46311 +20750 32879 +81791 76258 +49948 56739 +44960 22021 +49084 12978 +46948 25438 +22467 39216 +32066 41311 +47715 13764 +40689 56652 +81797 82792 +48102 91114 +13286 64910 +24324 81079 +14772 91386 +10721 20481 +26990 54622 +67169 22021 +42848 25771 +24672 13764 +86122 25771 +56904 13764 +81436 53096 +94624 33493 +91853 56652 +23675 14088 +26625 68877 +22777 53096 +44833 33493 +47549 96449 +79529 27951 +78188 99650 +16287 51001 +64231 25771 +84131 55907 +15378 41016 +69506 78358 +80392 64811 +68681 57430 +95565 40165 +27128 40839 +11911 38020 +32463 95974 +64051 39216 +59409 25771 +85311 99650 +15025 76669 +31085 83450 +57046 43589 +31356 25944 +53445 32566 +65374 24456 +94347 17250 +51998 76838 +38930 76838 +13223 22328 +23412 33493 +33498 39216 +66922 97888 +19340 13764 +30800 33625 +63834 53077 +26329 76669 +36202 52321 +99460 87180 +10752 22155 +83677 54586 +83136 94225 +43505 94775 +49792 51024 +18430 87697 +48959 62169 +27559 86092 +42055 71266 +47346 27875 +95130 15327 +67175 50520 +80717 48669 +98758 93010 +69621 73606 +25596 22021 +37015 83450 +14944 93706 +70867 84304 +14464 80652 +11365 25771 +78435 46797 +45002 58808 +57900 83487 +99650 55843 +80681 38011 +64811 86071 +97586 33898 +42094 41087 +76669 54622 +74600 28060 +18109 25771 +95834 40165 +76583 32274 +23271 54600 +73123 81744 +81442 70437 +97274 25771 +99106 91717 +19847 39216 +41705 54622 +97824 64338 +34982 39216 +47246 58999 +94716 78358 +52266 60776 +39216 95154 +49351 94864 +64910 39559 +43455 84248 +71500 27152 +30651 49103 +63267 44712 +17567 18998 +63046 48579 +51483 63529 +35182 14411 +73961 60776 +39993 30182 +26258 96243 +52698 77762 +21525 22021 +47513 20331 +13140 22021 +43778 40165 +22788 94225 +84367 31838 +54265 64910 +55305 42377 +78923 54586 +40429 39216 +12422 63046 +24878 94225 +64356 57593 +34812 40889 +54661 60776 +31004 55132 +38061 63046 +85827 35627 +72862 33704 +51636 98691 +15448 54159 +90048 67595 +53851 18285 +48530 74924 +20386 81637 +87273 53096 +83022 56018 +98251 65250 +89295 60776 +98142 15765 +31571 42354 +92874 70979 +44965 58401 +51688 78358 +93890 12104 +65530 53096 +55006 91017 +49672 55977 +31815 37826 +13567 58321 +60844 53077 +63845 26325 +98712 79314 +99601 63236 +14173 60776 +11249 86708 +37023 48603 +25248 14411 +25444 63817 +92822 10083 +43060 41903 +98283 89972 +10004 77190 +69379 56652 +30459 45165 +81481 18285 +47130 24016 +57377 56872 +24043 63046 +78319 33493 +96058 33493 +42928 32466 +76838 35627 +43659 76669 +36827 39216 +41007 60776 +79655 14411 +26608 44836 +85420 68185 +81174 96069 +79223 59880 +54106 52192 +71917 83450 +19775 73961 +45391 66102 +26838 33493 +53437 76669 +71922 91017 +67552 40770 +23842 12889 +75398 90858 +20264 96094 +38278 39216 +62780 68287 +92766 45165 +25677 23355 +55791 83450 +63556 93703 +97511 61946 +74712 18285 +34605 15067 +57436 56652 +91202 91017 +11656 54622 +31838 22156 +94443 25771 +84090 60590 +63298 91386 +60339 56419 +25780 53096 +55284 76669 +83080 71920 +53843 36881 +83616 42743 +89091 68085 +71899 31838 +57786 67595 +34559 96506 +77211 94225 +67812 61946 +26511 63739 +51963 97847 +81350 23053 +37978 57093 +93413 89804 +38133 60776 +73234 84629 +60624 31957 +13937 34269 +35804 44626 +36210 53096 +34190 33493 +30736 83057 +80091 23762 +60917 82383 +30227 53096 +94439 56652 +78308 67595 +51009 67595 +64010 53077 +20563 61946 +43967 17312 +86436 75180 +80389 42825 +94453 83450 +41805 91918 +21462 99650 +71157 10537 +35046 73961 +96103 74733 +83069 35732 +18285 82383 +26446 76669 +70874 18579 +10539 11666 +57999 83450 +25966 91017 +37570 93089 +46126 18897 +65025 78341 +48404 61946 +26116 91017 +84857 33493 +84369 96112 +79609 76561 +24415 76669 +55288 37007 +85869 10010 +15152 76669 +10609 52954 +56293 59754 +35563 99650 +15144 32125 +27560 33493 +10484 99261 +73264 74795 +44774 17094 +41294 53851 +14411 83990 +17065 25771 +25771 60026 +58907 16393 +93527 90760 +25715 68223 +61620 23456 +36485 15169 +70191 39216 +40165 94225 +54006 99650 +75597 53096 +49678 25771 +51574 96842 +57852 18285 +60104 61946 +78607 35627 +54889 14411 +47241 10303 +71456 94225 +81425 49149 +59061 28602 +24633 31838 +14420 93613 +54622 53077 +17040 78745 +70622 88133 +56992 72730 +97895 33493 +94648 44310 +59138 13764 +97350 69918 +32734 83579 +55320 66823 +96915 55216 +95293 38588 +13774 12822 +70053 58437 +22021 18724 +41216 43315 +28987 31838 +70488 89770 +48277 53914 +79376 76669 +94225 53077 +60803 12578 +21144 16837 +23645 33714 +28916 83751 +50535 31838 +62178 64811 +63126 71848 +33569 46461 +99826 53077 +74714 33856 +67967 26838 +83610 54622 +15872 36009 +34302 31838 +24069 56292 +90147 38554 +95987 79195 +62656 40165 +83153 26094 +68726 85767 +63172 74949 +35390 94225 +29379 63046 +13571 56578 +16169 64811 +68905 35817 +71763 53096 +48781 28841 +95966 15028 +87862 67072 +87176 60776 +11203 13761 +50294 11171 +21503 25547 +96570 78358 +25213 84422 +61744 85120 +62795 72393 +84907 33493 +82935 84304 +24224 36264 +91386 99650 +76217 98074 +73872 60776 +41777 19177 +95695 39216 +88779 15111 +93458 67595 +74732 67770 +23754 39216 +90662 35817 +24013 99650 +66779 83450 +54586 27524 +88285 69874 +47809 22021 +25662 71764 +31583 56652 +58156 60776 +22656 56578 +22315 76174 +70195 54622 +27027 33351 +32409 75991 +91017 72493 +53096 13301 +92656 41863 +84304 85568 +45081 73961 +21844 78358 +83024 61946 +93888 45113 +69174 53096 +98465 56543 +46208 56652 +63289 99650 +96607 76329 +62648 55561 +38090 62481 +87491 90246 +45019 81753 +88050 73961 +18142 26270 +36682 22021 +15933 94225 +17393 38533 +33633 67595 +55662 73961 +63567 74739 +69557 83450 +36169 25771 +40716 35837 +11665 14704 +94437 36515 +43859 18285 +98937 54490 +73932 94209 +99289 50655 +12403 22021 +80283 64811 +68700 43336 +36887 69617 +53551 83450 +76290 18285 +49743 25771 +35627 76669 +59070 13231 +40419 24169 +48544 82383 +68680 84304 +31610 58761 +31170 67595 +27004 41596 +62727 98757 +24189 76875 +42807 97581 +85552 71764 +52402 40046 +78358 41164 +83450 76669 +62947 25771 +55820 53096 diff --git a/elixir/test/2/input b/elixir/test/2/input new file mode 100644 index 0000000..944d032 --- /dev/null +++ b/elixir/test/2/input @@ -0,0 +1,1000 @@ +65 68 71 72 71 +31 34 36 37 37 +80 83 84 86 87 90 92 96 +30 33 36 39 45 +21 22 25 23 24 +66 68 69 71 72 71 72 69 +2 3 5 4 4 +77 78 77 79 82 83 86 90 +6 9 10 7 9 12 17 +25 27 28 28 30 32 +61 63 66 68 68 66 +51 54 54 57 60 60 +50 52 52 53 56 60 +73 75 76 76 83 +19 20 24 26 28 +36 38 41 42 45 49 47 +56 59 63 64 64 +26 29 32 36 40 +70 72 74 75 77 80 84 89 +81 83 88 89 92 95 96 +79 80 85 87 89 92 93 90 +77 80 85 87 89 92 92 +29 31 33 38 40 42 46 +49 52 57 58 59 65 +14 11 14 17 18 19 +43 40 41 44 47 50 51 50 +31 30 32 35 35 +43 40 42 43 46 49 51 55 +9 7 9 12 15 17 18 23 +74 71 74 71 73 76 79 80 +50 49 50 49 52 50 +51 48 51 49 49 +23 22 23 25 22 26 +45 43 44 47 45 50 +42 39 41 43 43 45 48 +97 94 96 98 98 99 97 +48 47 50 51 54 55 55 55 +33 30 31 31 33 37 +17 14 17 19 19 24 +41 40 41 43 45 47 51 52 +65 62 64 67 71 70 +77 76 80 81 84 85 86 86 +18 16 20 22 26 +58 56 59 63 64 65 67 72 +18 17 22 24 26 +27 25 28 29 30 36 39 36 +53 52 58 60 60 +41 40 45 47 49 53 +49 46 47 49 50 57 60 66 +43 43 44 45 47 50 53 56 +79 79 80 81 83 84 81 +68 68 70 71 71 +15 15 17 18 19 20 21 25 +58 58 59 62 64 66 71 +67 67 70 72 73 71 72 75 +83 83 81 83 80 +93 93 95 97 94 94 +5 5 8 7 9 11 15 +8 8 11 8 15 +59 59 62 62 65 +9 9 10 10 13 16 15 +72 72 75 76 76 79 79 +6 6 6 7 9 13 +27 27 29 29 35 +40 40 44 47 49 52 +85 85 87 88 90 94 92 +55 55 59 60 60 +36 36 40 41 42 46 +62 62 66 68 70 75 +44 44 45 46 47 52 55 +85 85 88 95 93 +33 33 35 36 39 44 44 +18 18 19 21 28 29 31 35 +58 58 60 62 69 74 +15 19 22 23 25 27 +20 24 27 28 29 30 29 +44 48 49 52 54 57 57 +41 45 48 50 54 +8 12 15 17 20 27 +48 52 51 53 55 +78 82 81 84 83 +8 12 9 12 15 18 18 +56 60 63 61 62 66 +2 6 8 7 10 13 20 +8 12 12 14 17 18 +52 56 58 59 59 57 +73 77 79 82 82 83 83 +58 62 63 63 67 +44 48 48 51 54 61 +63 67 68 71 73 77 80 82 +65 69 71 75 74 +84 88 90 93 97 97 +62 66 70 73 77 +26 30 34 37 39 45 +31 35 38 41 43 49 51 54 +3 7 13 16 17 20 23 21 +42 46 49 55 55 +71 75 78 84 88 +53 57 60 62 69 71 77 +66 72 74 77 79 80 +46 53 55 56 55 +6 11 12 14 14 +36 41 44 46 49 51 54 58 +66 71 73 75 78 80 81 87 +55 62 63 64 66 63 65 +22 27 28 25 22 +90 95 93 94 95 95 +35 41 43 46 45 49 +74 80 83 86 88 87 88 95 +39 44 46 47 49 49 52 +73 78 80 80 82 81 +81 86 89 91 91 94 95 95 +28 34 37 38 40 43 43 47 +72 77 80 80 82 83 84 91 +76 81 82 84 88 89 91 +36 43 47 49 50 47 +74 79 80 83 84 87 91 91 +48 55 58 62 65 67 69 73 +14 20 24 27 28 31 38 +33 39 40 45 47 50 52 +71 78 84 85 88 89 87 +46 52 59 60 63 65 67 67 +27 32 35 37 40 47 48 52 +66 71 72 78 81 83 90 +42 39 37 35 36 +46 45 43 40 39 36 33 33 +31 28 27 24 22 18 +27 24 23 22 19 14 +51 50 49 52 51 49 46 44 +78 77 75 74 75 77 +14 12 13 12 10 7 5 5 +41 38 35 38 34 +50 48 49 47 40 +70 69 69 67 65 +55 52 52 51 54 +73 70 68 65 65 62 59 59 +99 96 95 95 91 +76 73 70 68 68 63 +13 11 8 4 2 +26 23 22 19 16 12 9 10 +95 92 89 85 85 +25 24 22 18 15 13 10 6 +87 86 82 79 78 73 +92 90 88 85 78 77 75 72 +50 48 47 42 40 42 +75 74 73 67 65 63 60 60 +63 60 59 52 50 47 44 40 +43 40 39 34 27 +27 30 29 28 25 +29 30 27 24 23 21 24 +66 67 65 63 61 61 +93 96 95 93 89 +90 92 91 90 89 88 85 78 +15 17 15 12 9 8 10 8 +23 25 23 22 25 26 +77 78 77 78 75 75 +12 15 13 16 12 +23 26 24 21 22 17 +92 93 93 91 89 88 85 84 +92 93 90 89 88 86 86 88 +29 31 31 29 27 27 +31 34 34 32 28 +87 88 87 85 84 84 77 +74 75 74 72 68 67 +52 54 52 50 46 48 +75 78 75 71 69 69 +28 31 28 25 21 17 +70 72 69 65 58 +80 83 82 76 75 73 71 +9 11 9 3 2 5 +53 56 55 52 47 47 +14 17 15 14 11 6 2 +41 42 37 35 28 +83 83 80 77 74 71 68 65 +20 20 18 17 16 18 +76 76 74 71 69 66 64 64 +40 40 37 34 32 31 27 +63 63 62 59 58 57 55 50 +63 63 60 61 59 +24 24 25 22 21 23 +24 24 22 20 19 21 21 +17 17 15 14 17 16 14 10 +56 56 54 52 51 48 51 46 +41 41 41 39 36 +36 36 34 34 37 +28 28 26 23 23 21 18 18 +69 69 68 65 65 64 61 57 +81 81 79 79 76 74 67 +35 35 33 30 27 23 21 +81 81 80 76 74 73 74 +51 51 47 45 42 41 39 39 +89 89 87 83 79 +27 27 24 22 20 16 13 6 +82 82 79 73 71 68 66 +63 63 60 55 54 52 49 52 +17 17 12 11 9 9 +40 40 39 36 31 28 26 22 +85 85 82 81 79 74 67 +61 57 54 51 49 46 +38 34 32 31 29 27 26 28 +32 28 27 26 26 +49 45 42 40 38 35 31 +36 32 29 27 25 22 16 +73 69 68 67 65 62 65 63 +19 15 14 17 20 +95 91 89 87 88 86 86 +29 25 23 21 19 20 18 14 +21 17 16 13 12 9 10 4 +85 81 80 79 77 74 74 71 +95 91 90 88 88 87 90 +80 76 76 73 70 69 69 +88 84 83 81 79 76 76 72 +67 63 61 61 59 54 +50 46 42 39 38 35 32 +39 35 31 29 26 23 26 +17 13 12 11 8 7 3 3 +96 92 91 87 84 80 +19 15 13 12 8 1 +25 21 19 14 11 9 8 6 +30 26 24 18 19 +45 41 40 33 31 31 +72 68 61 60 58 54 +96 92 91 90 84 82 76 +44 37 36 34 33 32 30 +43 38 35 32 33 +33 27 24 21 18 18 +67 62 59 57 54 52 49 45 +99 92 90 88 82 +64 58 57 59 57 +80 75 74 71 72 69 72 +12 7 4 5 3 3 +13 7 5 6 2 +79 74 75 73 71 68 63 +42 37 36 34 34 33 31 +52 45 43 40 39 39 40 +36 30 30 29 27 27 +27 21 19 16 13 13 12 8 +63 58 58 57 55 52 47 +65 59 56 52 51 49 47 45 +17 10 8 7 3 5 +88 82 80 79 75 75 +26 19 18 14 13 9 +37 32 31 30 26 23 18 +19 12 10 9 3 1 +51 44 41 38 33 32 34 +44 39 36 33 31 25 25 +21 16 14 11 6 2 +53 47 46 44 37 34 28 +35 38 40 42 43 44 41 +83 85 87 89 89 +37 40 42 45 46 47 48 52 +25 27 29 30 32 34 39 +85 87 88 90 92 89 92 93 +71 74 75 73 76 78 76 +34 36 38 35 37 37 +40 42 43 46 44 48 +15 16 18 17 19 20 26 +8 9 11 14 14 15 18 19 +71 73 76 76 73 +17 18 19 21 23 23 26 26 +52 53 55 55 57 58 59 63 +19 21 23 23 30 +4 5 7 8 12 15 18 +58 60 64 66 63 +4 6 10 13 13 +42 45 48 52 53 56 60 +21 24 26 30 32 33 35 40 +75 78 81 87 88 90 +54 56 57 63 61 +42 44 47 48 55 57 60 60 +73 76 77 79 86 90 +45 46 51 52 58 +49 47 50 52 55 56 57 +57 55 58 61 58 +15 13 16 19 21 23 23 +63 62 63 66 68 69 73 +63 61 62 63 65 72 +92 89 87 89 92 +7 6 8 9 12 11 8 +14 11 10 11 11 +26 24 27 28 29 26 30 +32 29 30 32 34 36 35 41 +19 16 16 19 20 +74 73 76 76 75 +65 63 63 64 64 +43 42 42 44 45 48 52 +63 61 62 62 63 66 68 75 +63 61 65 66 68 70 72 73 +21 18 20 24 27 24 +18 16 20 23 24 26 29 29 +30 28 32 33 36 40 +23 20 23 24 28 31 37 +63 61 63 65 72 75 +41 39 40 47 48 49 48 +29 27 32 34 34 +36 34 36 37 38 44 48 +38 37 40 45 46 49 50 56 +49 49 52 55 56 57 +68 68 71 72 73 72 +47 47 48 51 51 +87 87 89 92 95 99 +47 47 48 49 51 52 57 +86 86 88 87 90 +74 74 75 78 79 78 77 +55 55 57 55 57 58 58 +85 85 86 87 86 88 91 95 +46 46 47 46 48 49 54 +80 80 80 83 84 86 89 +73 73 74 76 78 81 81 79 +93 93 95 96 96 96 +28 28 30 30 34 +24 24 27 27 29 30 32 37 +80 80 84 87 89 +48 48 51 55 57 56 +43 43 44 48 49 50 51 51 +78 78 81 85 86 88 89 93 +62 62 65 69 71 74 79 +25 25 27 29 30 37 39 +82 82 85 88 90 96 93 +35 35 36 39 44 44 +48 48 53 55 59 +68 68 70 73 74 80 81 86 +11 15 16 19 20 +78 82 83 84 87 90 91 90 +32 36 37 39 39 +15 19 21 24 28 +21 25 27 28 30 33 40 +16 20 23 26 27 25 26 +8 12 10 11 9 +44 48 47 49 50 50 +2 6 8 11 8 12 +78 82 85 87 89 91 89 95 +58 62 62 64 66 68 +36 40 40 41 42 44 42 +39 43 46 46 46 +38 42 45 46 49 52 52 56 +53 57 57 60 62 67 +15 19 22 23 26 30 33 34 +36 40 44 46 48 45 +54 58 59 60 63 67 67 +54 58 62 64 68 +31 35 38 41 45 48 50 57 +19 23 24 27 29 36 37 38 +23 27 33 36 34 +16 20 21 26 27 30 32 32 +79 83 84 91 94 95 99 +59 63 65 72 78 +34 40 43 46 47 48 +8 14 16 18 19 18 +29 34 36 38 39 40 41 41 +20 25 28 29 30 34 +48 53 55 58 60 65 +38 44 47 46 49 +83 89 91 93 91 94 96 93 +16 22 20 22 22 +78 84 83 84 86 87 90 94 +10 15 18 19 16 18 24 +34 40 40 43 44 +10 15 18 21 24 24 23 +9 15 15 18 21 21 +70 75 76 76 80 +15 22 25 28 29 29 36 +54 59 62 63 67 68 69 +80 85 86 90 88 +45 50 54 57 57 +35 40 44 46 47 51 +2 9 12 13 17 18 23 +69 75 80 81 82 85 87 +3 8 13 16 13 +74 81 88 89 90 90 +35 40 41 43 50 54 +50 55 58 63 66 69 75 +65 62 60 58 61 +17 15 13 11 10 9 8 8 +82 80 79 76 73 71 68 64 +63 61 59 56 54 51 50 43 +44 42 40 42 39 37 34 +43 41 44 42 45 +48 47 45 44 46 44 41 41 +91 88 85 82 79 80 76 +81 78 81 78 75 70 +16 14 13 13 10 7 +69 67 66 66 65 68 +70 67 67 66 66 +89 88 87 85 84 84 83 79 +87 84 84 83 81 74 +15 14 11 7 4 3 2 +26 23 19 17 20 +72 70 68 64 63 63 +46 45 43 41 37 35 31 +27 26 25 24 20 18 17 10 +42 40 37 32 30 29 26 25 +91 89 87 85 80 78 75 77 +83 81 79 77 76 70 70 +95 94 93 90 89 86 80 76 +49 46 39 36 34 31 29 22 +58 59 57 56 55 53 52 49 +88 91 88 86 84 87 +82 84 83 80 77 74 73 73 +22 25 24 21 17 +17 20 19 16 10 +4 5 3 2 5 4 2 +27 29 32 31 32 +52 54 52 49 47 44 47 47 +45 48 46 47 43 +84 86 88 86 83 80 77 72 +9 11 8 8 5 +39 40 37 36 34 34 33 35 +45 47 44 44 44 +38 39 39 38 34 +70 71 69 69 64 +20 23 19 18 17 +27 29 25 23 21 19 22 +15 17 13 11 10 7 7 +96 97 96 92 89 86 82 +62 64 63 59 58 55 49 +53 54 47 44 42 40 37 36 +82 84 79 77 79 +30 32 30 25 24 22 22 +36 37 36 33 27 23 +80 81 80 77 71 68 62 +59 59 58 56 54 53 52 +48 48 45 42 40 38 40 +63 63 62 60 57 55 53 53 +27 27 25 24 20 +28 28 25 23 18 +68 68 67 64 63 64 62 60 +49 49 50 47 46 45 42 44 +39 39 40 38 38 +83 83 81 80 79 77 79 75 +86 86 84 87 84 78 +99 99 99 98 95 92 +34 34 31 31 29 27 24 25 +37 37 34 32 32 32 +16 16 13 12 9 9 5 +25 25 25 22 20 17 11 +70 70 66 64 61 +71 71 68 65 62 58 59 +64 64 60 59 57 57 +89 89 88 84 80 +83 83 79 78 73 +26 26 19 16 13 12 +46 46 39 36 37 +52 52 50 47 40 37 37 +58 58 57 52 49 45 +68 68 65 64 59 57 50 +68 64 63 60 59 57 +21 17 16 15 13 10 8 10 +68 64 63 61 59 58 58 +86 82 79 77 76 72 +49 45 44 42 41 36 +94 90 88 85 84 85 82 79 +86 82 80 78 81 83 +49 45 46 45 43 43 +78 74 75 73 71 68 65 61 +57 53 52 50 48 50 43 +78 74 72 69 69 67 +8 4 3 2 1 1 3 +27 23 23 22 22 +27 23 23 21 20 16 +85 81 80 78 75 74 74 68 +15 11 8 4 3 2 +68 64 62 60 56 55 53 55 +82 78 75 71 68 66 66 +57 53 52 48 47 46 44 40 +38 34 30 29 24 +29 25 20 18 17 14 +28 24 21 16 17 +94 90 83 81 79 77 77 +60 56 53 50 43 39 +36 32 27 26 21 +36 30 29 26 25 23 +16 9 8 6 5 3 2 5 +92 87 84 81 78 75 75 +26 21 20 17 16 13 9 +33 26 23 22 21 18 17 10 +95 89 86 85 83 86 84 +54 47 45 44 43 44 43 45 +22 15 12 9 10 8 8 +92 87 84 85 82 81 77 +88 83 80 79 76 78 75 68 +22 15 15 13 11 9 8 +82 77 77 76 74 76 +90 83 80 79 79 78 78 +70 64 62 60 59 59 55 +87 80 80 78 76 74 71 66 +31 25 21 19 16 +90 85 82 81 79 78 74 75 +64 59 56 52 52 +63 58 57 53 51 47 +64 57 53 51 50 47 45 38 +60 53 52 46 43 +85 78 75 69 67 65 64 66 +35 29 22 20 20 +37 32 27 24 23 22 19 15 +67 60 57 56 54 47 41 +14 17 15 12 12 8 +10 10 11 14 17 20 22 22 +98 96 95 93 92 86 +73 71 72 74 78 +50 54 58 60 62 +57 59 62 62 63 61 +88 84 78 76 73 +49 49 45 44 43 39 +47 47 50 51 52 54 +59 57 56 52 49 +13 12 11 10 10 7 7 +94 90 89 88 87 88 88 +24 24 22 16 14 8 +45 46 48 49 50 52 52 +64 64 64 65 67 69 73 +53 58 60 61 62 64 64 68 +52 55 57 54 53 +71 68 64 62 58 +64 68 70 71 71 74 75 79 +54 55 55 57 57 +89 92 85 82 79 78 78 +81 80 83 84 90 91 +14 20 22 25 29 32 36 +46 46 48 48 49 51 57 +18 14 13 9 7 5 +92 87 84 84 81 82 +50 49 46 46 45 43 44 +82 85 86 87 89 86 +44 49 51 54 56 63 63 +88 90 90 87 85 82 77 +64 71 72 76 75 +97 98 97 95 97 95 94 90 +46 45 48 50 54 54 +24 20 18 16 15 14 13 8 +53 56 59 58 55 58 +49 49 50 55 58 +47 41 38 38 37 33 +25 31 28 30 33 35 37 40 +64 63 65 67 70 67 70 70 +53 49 47 47 44 43 37 +30 37 43 45 44 +53 48 47 45 41 +65 69 73 76 80 +58 52 48 46 45 44 41 43 +9 7 7 10 15 +82 82 83 90 90 +63 63 60 57 53 52 46 +31 27 25 24 20 19 12 +5 4 7 6 5 3 1 +86 82 81 84 80 +86 81 79 76 75 73 69 67 +54 57 59 60 62 66 +52 48 46 41 37 +46 46 43 41 40 39 35 +49 50 51 53 59 64 +25 27 30 32 32 33 +59 62 59 57 56 +16 16 16 13 12 10 8 11 +34 28 24 22 20 17 13 +57 57 57 60 63 62 +53 59 57 58 62 +29 27 25 24 18 16 9 +50 54 57 57 58 60 60 +41 35 32 32 30 29 23 +66 69 68 62 59 56 52 +49 44 45 42 41 37 +61 61 60 57 50 +3 1 2 9 11 11 +29 26 24 23 21 20 19 19 +59 60 61 63 63 65 69 +97 95 91 88 85 82 83 +4 11 13 20 21 22 24 +72 74 69 66 65 59 +62 68 71 74 74 77 78 78 +69 65 62 61 63 61 54 +15 17 14 11 10 12 12 +83 80 79 75 74 74 +75 70 69 63 61 62 +65 69 70 73 76 75 77 77 +34 29 27 25 24 21 18 21 +6 6 7 9 12 16 20 +50 50 47 45 44 45 45 +69 70 72 69 72 76 +80 80 78 74 73 72 71 71 +28 24 20 17 14 15 +51 51 54 56 61 +38 34 33 33 32 +23 23 25 27 31 28 +39 37 39 42 44 46 48 +56 62 63 63 65 67 69 67 +74 74 80 81 78 +73 71 70 67 63 58 +32 36 38 40 43 50 56 +87 83 81 75 69 +69 65 62 62 64 +85 88 89 93 98 +20 13 11 10 10 +52 53 56 60 62 66 +58 58 59 62 62 65 67 +75 81 83 85 87 87 +38 32 29 24 21 19 14 +93 89 82 80 79 77 75 78 +11 11 13 14 13 14 13 +50 50 45 44 43 40 38 +86 82 79 76 72 72 +81 88 89 92 95 96 96 97 +39 37 42 43 42 +22 21 24 21 17 +24 23 22 22 21 +38 35 35 38 42 +61 61 64 66 68 70 67 67 +92 92 90 88 90 89 88 89 +4 4 5 9 15 +78 82 84 87 91 +63 62 61 59 57 54 54 50 +51 55 60 61 63 65 68 +43 48 54 56 58 63 +47 49 53 54 54 +81 85 88 91 96 +44 44 42 44 46 49 52 59 +84 86 85 83 80 78 81 80 +13 13 12 8 7 +66 70 72 73 74 75 74 +85 87 86 83 79 +19 24 25 27 24 27 30 30 +17 20 23 24 30 27 +15 10 11 10 8 5 6 +81 85 91 94 97 94 +75 72 75 78 78 81 83 81 +49 51 48 48 45 44 42 45 +59 57 60 60 62 +91 84 82 77 77 +27 27 25 24 22 24 +52 55 51 49 49 +70 70 72 79 80 84 +74 78 79 83 85 86 88 88 +76 70 73 72 71 69 +47 43 41 40 39 41 39 +82 81 84 86 85 89 +21 25 26 29 26 27 28 25 +41 36 35 33 30 28 22 +37 37 39 41 43 47 +13 20 21 24 26 29 34 +38 38 36 35 30 26 +14 18 19 20 20 27 +85 81 78 74 70 +17 15 16 15 16 18 +96 99 95 94 93 91 88 81 +74 79 80 82 85 83 89 +41 38 39 44 46 51 +23 19 13 11 9 9 +72 79 80 81 78 80 82 80 +93 93 95 98 96 97 99 +27 23 22 20 19 16 16 +83 83 85 88 90 92 89 +58 55 52 49 42 42 +45 39 37 37 35 34 31 +40 44 47 45 46 +3 3 4 1 5 +11 13 8 6 5 3 2 +43 40 42 41 40 39 36 37 +34 31 29 28 24 +25 23 24 25 28 25 23 +94 89 88 84 82 80 79 79 +76 72 75 74 75 +17 20 21 18 21 24 27 28 +59 55 54 51 50 46 +11 11 10 8 8 5 4 3 +15 19 21 24 26 27 28 28 +11 18 20 24 26 27 27 +58 56 58 61 63 64 66 73 +68 67 68 69 72 76 77 79 +2 9 12 16 19 +38 38 37 37 32 +28 28 31 30 23 +67 67 66 65 62 59 +1 7 8 11 12 15 19 +40 39 41 43 47 54 +72 65 62 60 53 49 +98 99 97 93 91 87 +56 59 58 56 54 47 +19 19 15 12 9 11 +36 38 36 39 40 47 +8 9 10 12 13 17 15 +55 62 64 67 70 72 70 +19 21 20 18 19 +78 81 82 86 87 90 93 96 +30 28 31 32 35 34 +42 40 37 32 30 29 27 26 +78 78 81 82 85 85 85 +31 35 37 38 40 41 +72 74 75 78 78 80 82 87 +14 14 11 8 9 6 +1 5 6 7 10 14 16 14 +47 51 54 54 57 54 +3 3 3 2 2 +28 34 35 39 44 +25 25 28 33 39 +82 85 82 81 78 78 +83 87 90 91 93 93 96 97 +80 81 78 74 76 +31 31 31 28 26 23 19 +39 45 48 51 54 60 64 +73 76 73 73 72 69 +55 59 63 66 69 70 72 79 +72 68 65 64 62 62 62 +49 49 44 41 41 +70 74 77 78 77 80 82 87 +49 53 50 52 53 54 57 61 +98 93 91 88 90 89 84 +64 66 61 59 62 +88 86 88 87 82 +46 44 43 40 35 37 +28 24 21 18 15 13 10 7 +53 52 54 55 57 57 +93 89 87 84 82 82 80 76 +93 87 89 86 86 +9 10 11 14 15 13 15 15 +10 11 13 20 21 24 25 29 +71 74 79 80 80 +39 43 46 47 48 55 55 +85 81 78 77 76 73 75 +66 73 76 77 78 78 85 +80 78 79 77 79 85 +33 34 33 31 27 26 +69 66 69 73 75 77 76 +36 30 27 25 23 23 23 +70 67 66 64 62 65 +23 25 23 20 19 20 17 11 +24 24 25 29 30 32 34 35 +76 77 80 83 86 92 94 +62 60 58 55 53 53 51 45 +14 16 13 12 10 10 7 7 +74 74 73 70 69 66 63 63 +50 53 56 59 60 65 +89 88 85 82 81 80 +27 25 22 21 20 +71 72 75 78 80 82 +58 55 54 53 52 51 50 49 +44 41 39 37 34 33 +78 81 84 86 88 91 94 +25 26 28 31 32 34 +47 46 43 40 38 +10 13 14 17 19 22 +80 82 83 84 86 89 +79 80 82 84 85 86 88 +52 55 57 60 61 +58 61 62 64 65 68 69 70 +82 83 86 89 91 93 +24 23 22 21 18 17 +23 26 27 28 31 32 +19 18 16 14 12 9 +70 68 65 62 60 58 57 +50 52 55 56 58 +18 21 23 25 27 29 30 +44 47 50 52 53 +96 95 92 90 87 +43 46 49 50 52 +12 13 16 19 21 22 24 25 +52 55 56 57 58 59 62 63 +25 23 21 18 16 13 +89 86 84 81 80 +55 53 50 47 46 +65 64 63 60 57 54 +14 15 17 18 19 20 22 25 +30 29 26 23 22 21 +29 27 24 21 19 16 15 13 +40 39 38 37 36 33 32 31 +24 25 28 29 32 +87 84 82 79 78 77 +18 21 22 25 27 30 32 35 +81 82 83 84 87 89 92 +7 8 11 13 14 17 19 22 +10 7 6 5 4 1 +66 65 64 61 58 57 +78 76 74 73 71 68 66 +63 65 68 69 71 73 74 77 +63 65 67 69 70 71 72 73 +90 88 86 85 82 81 +49 47 46 45 42 41 38 +76 75 73 72 70 68 67 +79 81 82 83 84 +76 75 73 72 69 +64 61 59 58 56 54 53 52 +87 85 83 80 79 76 +30 29 26 24 22 19 16 14 +56 58 61 64 66 +21 19 17 14 11 +75 78 79 81 84 86 +76 79 80 83 85 +66 65 64 61 58 +56 53 50 48 47 45 43 +34 32 30 27 25 +10 13 16 19 20 23 26 28 +41 44 45 48 50 51 52 53 +28 25 24 21 19 17 14 +36 34 32 30 28 25 24 +38 40 42 44 47 49 50 +1 3 4 6 8 10 +37 35 32 30 28 27 26 +37 35 34 31 29 28 26 24 +94 91 90 89 88 +70 69 68 65 62 60 +81 83 86 88 90 92 95 98 +90 89 86 84 82 80 +52 51 48 47 46 43 +47 44 41 38 37 35 32 +38 37 34 33 30 28 +58 56 55 54 51 +19 17 14 13 11 8 +33 31 29 26 24 23 22 19 +40 42 43 45 46 47 49 50 +77 75 73 71 70 67 64 61 +43 42 39 36 33 +4 6 9 10 12 14 15 18 +14 13 12 9 8 5 +43 41 39 38 37 35 33 +70 72 73 76 77 +80 82 84 85 86 89 +65 66 67 69 72 +17 20 22 23 26 +85 86 87 88 89 +50 47 44 42 41 38 +6 7 9 12 14 16 18 +89 91 92 95 97 +45 47 49 51 53 +61 60 58 56 55 52 51 48 +64 63 60 58 55 +62 64 65 66 69 72 73 76 +57 59 60 63 66 69 +74 71 70 67 65 63 60 58 +51 53 54 57 59 +86 88 90 91 94 +68 71 74 77 79 81 83 +76 74 71 68 67 +81 79 78 76 74 +43 45 48 51 54 55 58 59 +84 82 81 80 79 78 76 75 +49 51 53 54 57 60 +37 39 41 44 47 50 +65 68 69 70 73 74 77 79 +91 90 88 85 82 +23 25 26 29 32 34 +41 42 45 48 50 +64 61 59 57 54 51 50 +23 25 26 29 30 33 35 +19 16 14 12 10 +79 80 81 82 85 +36 37 38 40 43 44 46 49 +60 61 62 63 66 +46 45 43 42 40 +49 52 55 57 60 +14 15 18 19 20 21 +98 96 95 94 93 90 89 86 +76 77 78 79 81 +18 15 13 11 10 7 6 4 +34 35 37 38 41 44 46 48 +35 32 29 28 27 25 +78 80 83 86 88 +87 84 82 80 79 78 77 +75 72 70 69 67 +90 92 94 95 97 98 +36 33 31 28 26 25 23 +50 52 54 56 57 58 59 62 +56 57 58 61 62 63 66 +81 80 79 78 75 74 +20 21 22 23 24 26 +45 47 48 49 51 53 +39 41 43 45 47 49 51 52 +18 20 22 23 26 +18 20 21 24 26 29 +25 23 20 17 14 12 9 6 +12 15 16 18 20 23 25 27 +10 13 16 19 22 23 24 +98 95 92 91 89 86 85 83 +14 16 17 19 21 23 25 +5 6 9 11 12 13 14 +66 64 63 62 60 +50 49 46 45 43 +87 86 83 82 81 80 +34 31 30 29 27 24 21 20 +28 25 24 23 22 19 18 +66 64 62 60 58 +57 56 53 52 50 +48 50 52 54 57 58 61 +65 68 70 72 74 +11 8 6 5 2 +30 29 27 25 22 21 +52 55 56 57 59 62 65 67 +78 76 75 72 70 69 66 63 +5 8 10 13 16 18 19 20 +31 28 27 24 21 19 +32 34 35 38 40 43 +23 26 29 30 32 +87 86 83 81 78 77 75 +35 37 39 42 45 +72 73 76 78 79 82 85 86 +78 75 73 71 70 67 66 63 +72 70 69 66 63 +48 46 43 40 39 36 35 +2 4 6 7 8 10 +88 90 91 93 96 98 +66 69 70 73 75 +28 26 23 22 21 18 15 +12 14 17 19 20 21 24 25 +20 17 16 14 13 11 8 +30 27 25 22 21 19 +50 47 46 44 43 42 40 +91 88 85 83 80 78 +59 60 63 66 68 +42 44 45 46 49 51 53 55 +82 80 77 74 71 70 +13 11 10 9 7 6 3 +69 66 64 61 58 +61 58 55 54 53 52 51 +25 23 20 19 16 +21 23 26 29 32 34 35 +22 23 25 26 29 +25 24 21 20 19 18 +48 51 54 55 57 58 59 +23 25 28 31 34 36 +40 41 44 46 49 50 +83 81 78 75 74 +16 19 20 23 26 29 30 31 +14 13 12 9 6 +77 76 74 71 70 69 +75 73 72 69 66 63 +50 52 54 56 59 60 +53 50 49 46 44 43 41 +18 16 13 12 9 8 +26 24 22 19 16 +44 42 39 36 34 +37 40 41 44 47 49 50 52 +8 9 10 13 14 17 +54 56 57 59 61 62 64 +54 56 59 61 63 +14 13 11 10 9 6 5 2 +63 65 68 69 72 74 75 +70 69 67 66 63 61 58 +64 67 70 73 74 76 +40 39 37 36 35 34 31 30 +45 42 41 39 36 33 30 +61 59 57 54 53 50 +31 33 34 35 37 +38 40 43 44 46 49 +36 38 41 43 44 46 49 50 +63 62 61 60 58 56 +15 12 10 8 7 6 5 +42 45 47 50 53 55 +57 56 54 53 50 48 47 +13 10 8 7 6 +86 85 83 81 78 76 74 71 +44 43 42 40 38 +33 31 28 27 24 22 21 +72 70 69 68 67 66 63 62 +58 60 63 66 68 71 72 73 +29 30 33 36 38 39 +11 8 6 3 1 +33 32 31 29 27 25 24 +53 56 58 61 64 +60 58 56 55 54 51 +67 70 71 73 75 +3 5 7 9 12 13 16 +28 29 30 33 36 +40 37 36 33 32 30 +22 19 16 13 11 +25 28 30 33 34 36 37 +32 34 36 37 40 42 44 +23 22 20 19 18 16 13 +59 61 63 64 66 69 71 +30 29 28 26 25 22 20 +60 61 62 65 68 +61 64 67 70 72 +48 47 45 44 42 39 37 36 +77 79 80 83 85 87 +29 31 33 34 36 38 +6 8 11 13 16 17 18 21 +98 97 94 92 91 88 87 84 +35 34 33 32 30 27 26 +87 89 90 92 95 +10 9 8 5 4 3 +68 69 70 73 74 77 79 +63 60 58 55 53 50 +68 71 72 75 77 +34 36 39 40 43 44 +20 22 23 26 28 +48 46 44 42 39 38 +96 94 91 88 85 83 80 78 +79 76 74 73 71 70 67 64 +26 24 21 20 19 16 +67 69 71 73 76 77 80 +72 71 70 67 65 +60 57 55 54 53 51 50 47 +72 73 76 78 79 80 81 83 +64 67 69 70 72 73 74 +41 42 45 48 49 51 52 55 +85 88 89 90 91 94 95 98 +96 93 91 89 86 85 83 +72 71 68 66 63 +86 89 91 92 95 96 +35 38 39 41 44 45 +12 15 16 18 21 22 24 +65 63 60 59 57 54 52 +37 34 31 29 27 25 22 19 diff --git a/elixir/test/advent_of_code2024_test.exs b/elixir/test/advent_of_code2024_test.exs new file mode 100644 index 0000000..8943ca3 --- /dev/null +++ b/elixir/test/advent_of_code2024_test.exs @@ -0,0 +1,22 @@ +defmodule AdventOfCode2024Test do + use ExUnit.Case + doctest Day1 + + test "answers question 1.1" do + Day1.part1("test/1/input") + end + + test "answers question 1.2" do + Day1.part2("test/1/input") + end + + doctest Day2 + + test "answers question 2.1" do + Day2.part1("test/1/input") + end + + test "answers question 2.2" do + Day2.part2("test/1/input") + end +end diff --git a/elixir/test/test_helper.exs b/elixir/test/test_helper.exs new file mode 100644 index 0000000..869559e --- /dev/null +++ b/elixir/test/test_helper.exs @@ -0,0 +1 @@ +ExUnit.start()