Skip to content

Commit 85ca90e

Browse files
committed
feat(aoc-2023): day03 part1 and part2
1 parent 70d29bc commit 85ca90e

5 files changed

Lines changed: 240 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
467..114..
2+
...*......
3+
..35..633.
4+
......#...
5+
617*......
6+
.....+.58.
7+
..592.....
8+
......755.
9+
...$.*....
10+
.664.598..

2023/src/main/resources/3/values

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
.........232.633.......................803..........................361................192............539.................973.221...340.....
2+
.............*..............#.....256.#.........329....................*313............*.......766.......*..........472..-...........+..249.
3+
670-..@.......181......814..865.........968......@.......605....128.............%......798.638...+....776...........*......%...........*....
4+
.......563........741....*..........&.....-...............*........*....815*....921...........*..............428.219..993.584...990.431.....
5+
.........................466.971..815...&....634.197.%...887....114.........521.........&..796.......-.......+..........*......*............
6+
................713.546......*........941......*..*..837............903...............910.........988....61..........&..946..240......697...
7+
........563........*....707-..895...........223..160......618..........*..................................&...61...603............495.=.....
8+
..........$............................+633............................697.910.....@70..................................497......*..........
9+
...568..........+832......@.......551............#863...324*......................................837......701..740.................72......
10+
.....*.98..................245....#.........&...............145................#...832.......580.....*.......$../.....432..........*........
11+
..315....../......4.......................174......*971............76.......472..............*.......66...................260.....348.......
12+
.......179.908.....%.......-....-108.726........654......422.................................501.644....279.....&.....528*..................
13+
........*.................913..........*.639*............-...........-131..5.....%......................*.......228.........900..148........
14+
......665..........220.......................561...........................*...237..576.381.........../.......................*.............
15+
771................*.................416.................996.799........441..........*..=..........355...........570.481*422..798...........
16+
....+924..#462..420..659@.404.........#...................*..*......*..........233.........................955...%..........................
17+
..........................................265.........86..43..1.398..624......*........896.53.855............/........301...............#...
18+
...............688.................#..614*..............*........#............103.486...@....*....+........................672.725....508...
19+
...........993...=.....906.124....92.............208@.626...298.....................*..........810........428*461..619........*.............
20+
590*......*........636..*..*...........683..................@.....*128...524...../...507..@636........................=...........991.....52
21+
....61.993............*....627...=796..*.......................841..........#....105...........313......=...................555...#.........
22+
715........625..963.194.................505..841......&442.............108*....................=.........58.......450..........*............
23+
............*....*..........343.138*560.......-............................561..........*53.................$........#.327......766....234..
24+
.....-...276....370..........%............913..................16.825.............%..111.....561..........446...............................
25+
.....372...............................@............@..........././....*8.......136......758....&..349.................666.....*............
26+
.........340..639............214......364..31&.......440..644$......577....................&......*.....................#...382.............
27+
........*.......................*..........................................175..........84........931..692.......................*..........
28+
.......860..........@..........400............235.....797.................*...............*...863................683/....778..367.79........
29+
..................192.....%...........897..............*.....320*634......................32..............556...........................$...
30+
...........783...........475.............*.781......875..891...........867......322...............8..........*...938..318.462*........&..620
31+
....#.......*....$293.................330.....*............*...........*.....26*.......668.205.......32.%....975.....#........750...25......
32+
..521......388.........116.....33.............2...........519..717..859..............&....*....*881.*...109...............828...............
33+
................................*...927.........................*.....................240....66.....27.......482.227*...................#968
34+
...$479...........91*...%.......598........102../.........615.....184..@......456.385....................+.....*.....476...13+...391........
35+
........................526..................+...90..............*....500.......$....*.....14......*......206.57............................
36+
.........53&...134*...........%784....=................775.692.88..........873......115..9.*....937.242..................729...342......344.
37+
....*568.....#.....................-..140...=.............*..................*..............521................185......*......*............
38+
.462..........331...$......337...90........829.....$.........262=.....376..787.........*352...................*..........227..413....518....
39+
......&............796.698...@.................346..277....=.........*............%.918......902.....327.....120....320...............*.....
40+
....902.....488..%...............................*........150.688...822.........721...........*......................*.............*3.445...
41+
...........*....132...........71..880.........770.....150..................................674.............924........746.......403.........
42+
.....929...771..................*..................$.....*..110....63..................847.............423...-....651.......................
43+
................./......729...927..867..........577...763...*........*..55.....320*......../..674.962..............*.............421........
44+
.../...........707.........*...........222.................301....702....*.........943...431..+....#....59.600..756...593..352..=......*579.
45+
.965...607............669.406.704........*..............#......*......720.................................*..........@.......@..............
46+
...........333.........*......*..........839.............449...210.........219........=84...842.............................................
47+
.......582...-..........350.831..394.835.....184...........................*.....676........*............755.........22.....................
48+
..710.....&............................#........+.....................86.889..............86..625..........*...........*......195.547.......
49+
......549....945.601.........*.......+......975..............285.................743.........*............433..........619..........*....675
50+
.........+.............204..161.......493..*.......896...576..*........328...............902.819....362..........373..............854..-....
51+
.......................*..........272.......812....../..*.....933..447.....950...124.....*.............*....990....+..$172....139.......530.
52+
27...$....844.486.....810.826........+...................880.......=........=...*.....359....242#..432..206....................*............
53+
.....519...+....*.........&.....................805..66.......................@.......................*.........859.........943.............
54+
742............116..........*421..-984.......=...*..#....+...559....*566...790........$......372.307...180.....*...................532......
55+
...*.....................135................88.417....576......+......................138......*....-.......314........776...........*......
56+
.670..................................893.........................565..985......833..........369..=....#372........842......868...221.......
57+
.......168..128....500..........962..*....31........143.....897*..@...*..............727..........42.........................*........24-...
58+
..382.*.....*..................*....593................................414..165...........................179+..42....$.=.......=...........
59+
....*..468..362......39.........802....................339.................*..................240............../...257...386.262..556.......
60+
...852..............*....670...............872........../.........480.....945..983*604....997*..........182......................*..........
61+
.........916.....800...*..*........#......*.......165...............#..........................%....927...*.....................55.....#....
62+
.........*............521.394.......142...672.967..........107...........785.208.....-...&....614....@...386.975...................923..273.
63+
...146..70....................................*....177....*........550......*.....606...430....................*....35......=.........*.....
64+
.....*.....=..707..157*334......675*....=..719......*.....762.....+.....960.................................343....*.......498.........291..
65+
..654....592.....*..................54.500...........772.................*.....................252....689...........357........778.273......
66+
..............455....$.........381*...........*117................388.386...........258/......*...................*..............*....*.....
67+
.....................948...........914.....514.......476........../........975................274.....119.....-.56.94.....390...250.484.....
68+
......723........................................415....*451................*...2.......................*...115..............-..............
69+
..818*.................859.401*240...205...228...................757.102...954......#.............863.523...................................
70+
.........613.844.832..................*...-..................35.......*............989.....+........*.........381..............827.702......
71+
..........*....*...................592.............=456.....*...@.385...78..................233.....27...............49.574.....*.....=.....
72+
........230.311...326...617..585.........................798..699.%....=.....20........................687.....662.......*......246.........
73+
735..61..........*......*.....*.............361....................................=...................%........*.....171...380........786..
74+
.......*..%......378.624.........836*742...=...../...#...322......../...195.......634.....422..893*106.....-.....960.........*.....121*.....
75+
....969....738...............%..................919.78........685.773......*..............................654..=...........414..............
76+
...........................297...............=.........44.718...............718....841...446.....881+.../......825.870.........104..341.....
77+
.............663.292.............165....466...892.........@..........296..................*..............948.......*................*.......
78+
..748....*..........................$...*.........99...........707.....&.339...............483...............*....896.......&.....241.......
79+
...*..=...494....@..227.@821.............761.......*.............-.143...*......329...............24.......54.........202..588..............
80+
.481..203......37...............90..390........171..80...................857...$..........689+...+......=.......930...*.....................
81+
............#......*794..........*.*...........@..........233*503......................................62......%....%.14....*...........+...
82+
..438%....149...492...........842.......721..........................301.....................958../...............265....628.9.......813....
83+
.........................671*.....518......*.........903*974..120.....*..269...560....907....*...214............$........................961
84+
.............................22......*....740..................&.....825....*.*..../....+...612..................740..........307...467.....
85+
...............350......535.........665........138...........#....$......831..487..432...................................348..*.......*.....
86+
....32........................529.................*395......318...984...................492....*..........835...............$.735..333......
87+
....=.....136.................*.......................................&....779.848..*..*....486.......736....*..............................
88+
..........$......507..329.....189..............................745.....223.%.....*.552..888........+....*....53........415..................
89+
.....................=...................+..930....845..3..$..../...99........599................731.986..............-.......582....669....
90+
.367*969.........../.........132........13..*.....*.......420......@......442.........793.....................................*.....@.......
91+
..............997.908.148......+...........961.397....................9.......................144...736$...942.346.....970..72..........*794
92+
..608.13..993.+........$...........462...............539..560....637..#......208....896...5......*.......@...*..*..856*..............178....
93+
....*...$./................727..................787..=.....*.....*......593....*.....+...........736...191.609.774.................*........
94+
.....62.......325*.....372....*994../...........-..........513.853.907.........43...........*........................511-.850.......49..696.
95+
..........856.....651....*.........314...213..........+.............*..............%.....718.70...................*..........*.........=....
96+
....659*...*..........453..............................123.........921.......11=..32...............312....795..467.689.......760............
97+
............997................545.597.................................@.................$........*.........*...........................808.
98+
..565...............115.522.....*...........-..179...606.269.........885...733*.........857.857.252....510.842...518.......678........$.....
99+
....%..............*.....*.......420.426..92.....*......*......................447..........*............*...........995.....*.761.158......
100+
.......128.......178..495......%........*.......748.......927.411..........519..............430.......&..480...........*..667...*......+....
101+
.........*....................266..-846.625.807.......561*.........687.....*...*268....55=....../....60............%.556.......56......67...
102+
.........698..593+..485.......................*....................%......166..................174..............944.......591.....808.......
103+
.....698...........*....376......891...........951.............538.............563....472..........584*460...$............=.............492.
104+
....*...........716....*.........=.....238.297....................*........23*...*....*.....90..............668.............%...............
105+
...798.351....*.......720.513...............*....476..............312.&745....35..550.885...........343.........937.........435.........$...
106+
..........*....882.........#..............556....../..417...691...............................671......*...609...-.....424......*675.....650
107+
....9....900........*........867......................$....*..........975&..@.......897........$......905.....*.......$......122............
108+
.....&.......*...555.796....@...............&.............530..............229..............................585...................22........
109+
.......456.495.....................107...800............-.....683........................876......=....181*..............954.....$..........
110+
...774*..............643......437.....&..............310....-...&..............494*..265....%....320...............*.......*................
111+
........*13...........*..........$........................258................/.......*..................632.....677.227.922........#........
112+
.....778..............384....908........156%....533..............192..420.....861.771..=........553...........................860..370...309
113+
.............483..................................................*...................500..773....@.......900....................*......@...
114+
........249.%...............93*..................171...248...315...470..........169..................*198...*...........482.......771.......
115+
...267...*.....835/............6....459..252........&...*......*...............*......=.....496*..334.....493..............*................
116+
..........991...........191.........*........521/........661..514...............832....296....................$.650.....363......442........
117+
.....942...............*............58.................................390.....................$............865...-.........................
118+
..16*.........586...993....%..............255...55..........337...............334..............82..+....&..............490-..........5.381..
119+
.................*..........16.867...........*.&...35/.........*.427...........#..................877.768.......+.......................@...
120+
................110...413#........*104.....90..........623..433....=..*..462...........33.685.228................288.........513...721*.....
121+
........717.................#.344........................*...........970.................*.......#...953....546........162.............637..
122+
........*.................37...*.......740......331......564.....................556.................*.....*....843.......*.................
123+
..195............2*...........937......*.......-.......*..........=..255.349.....=.......*837.......342....411.*.......537...337.....791....
124+
........=..........641...............424.............24..........261....*.............667.....551&.............324..........%..........*....
125+
..330...841./465.......486......................&.......*996.........#..................................227...........&.........33.681..354.
126+
....@..................$........................455..........304.....542.#....64..624........./........*........716...245...166...*.........
127+
..........331*738...............249.................126..833...*..........913.................690....943..284..................*........938.
128+
.................................@....224...429....*......*.....195..................231..................*....857.............975..........
129+
............252..........71.599...................279...828............&......&.......+.................967...*............285.........798..
130+
.370.....&...*.............*.........640.............................898...746..134...........$.329.........768....279+.....=...840....*....
131+
...*...979.374..192..............370*..............964...970....................*..........436...*....410........................*....306...
132+
..................*.727...139*...........................-....689..819..498....982.....131.....566........................390....505........
133+
....................*.........84...973.......830..394.........*.........*...............*..........401.562..907.....405......$.......321....
134+
....#....455..*.....284............../.......*......-.722..124.......&...921...........303............./.......*652.....-........*....*.....
135+
.286.....*...775../.......274/....74...774.986.................96.469.......................335..526..................344..31.942.31...846..
136+
..........72.......582...................*..............#......*..........380&........570....../....*.........$....*........*...............
137+
......................................201....*648......838..253....101*.@................/..........606.....744..792.........396..-990..+609
138+
.938...............*..896..125*...........842...........................485...510............801.....................329.983................
139+
...*............963....*.......761..............................................*...927.........*...................*.....*........45.......
140+
....981................675.........676.............156.............30...........998............697......14..366....960...874..497........278

2023/src/main/scala/day02.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.markkovari.adventofcode.day02
22

3-
43
case class Colors(color: String, count: Int)
54
case class Game(id: Int, hands: List[List[Colors]])
65
type Summary = Game => Int

0 commit comments

Comments
 (0)