Skip to content

Commit 5b2a3d9

Browse files
committed
15 initial
1 parent 527d15b commit 5b2a3d9

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

src/15/input.data

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Sensor at x=3797530, y=3451192: closest beacon is at x=3316341, y=3328308
2+
Sensor at x=3779164, y=33938: closest beacon is at x=4608350, y=708806
3+
Sensor at x=1331810, y=3260896: closest beacon is at x=2075597, y=3280016
4+
Sensor at x=393374, y=696899: closest beacon is at x=2021690, y=453306
5+
Sensor at x=2928048, y=923094: closest beacon is at x=2021690, y=453306
6+
Sensor at x=2386726, y=3645023: closest beacon is at x=2075597, y=3280016
7+
Sensor at x=1900159, y=2381031: closest beacon is at x=1649961, y=2000000
8+
Sensor at x=2601378, y=2979844: closest beacon is at x=2218962, y=2701963
9+
Sensor at x=2254818, y=32199: closest beacon is at x=2021690, y=453306
10+
Sensor at x=2689643, y=375840: closest beacon is at x=2021690, y=453306
11+
Sensor at x=909141, y=2842547: closest beacon is at x=2218962, y=2701963
12+
Sensor at x=3915731, y=2454320: closest beacon is at x=4268501, y=1853073
13+
Sensor at x=1693574, y=1344104: closest beacon is at x=1649961, y=2000000
14+
Sensor at x=1760260, y=3297662: closest beacon is at x=2075597, y=3280016
15+
Sensor at x=1909567, y=3990737: closest beacon is at x=2075597, y=3280016
16+
Sensor at x=2097863, y=3179766: closest beacon is at x=2075597, y=3280016
17+
Sensor at x=3100489, y=3623847: closest beacon is at x=3104748, y=4102403
18+
Sensor at x=2746023, y=2432826: closest beacon is at x=2218962, y=2701963
19+
Sensor at x=3031245, y=3031354: closest beacon is at x=3316341, y=3328308
20+
Sensor at x=277094, y=1999350: closest beacon is at x=1649961, y=2000000
21+
Sensor at x=1763269, y=126349: closest beacon is at x=2021690, y=453306
22+
Sensor at x=3287624, y=2695420: closest beacon is at x=3316341, y=3328308
23+
Sensor at x=2371102, y=1745103: closest beacon is at x=1649961, y=2000000
24+
Sensor at x=3553438, y=1563379: closest beacon is at x=4268501, y=1853073
25+
Sensor at x=1529129, y=2735122: closest beacon is at x=2218962, y=2701963
26+
Sensor at x=2826220, y=3958350: closest beacon is at x=3104748, y=4102403
27+
Sensor at x=3999334, y=3912693: closest beacon is at x=3104748, y=4102403
28+
Sensor at x=240430, y=3829436: closest beacon is at x=-742036, y=3963149
29+
Sensor at x=3455748, y=3814861: closest beacon is at x=3316341, y=3328308

src/15/solve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FileReader } from "../common";
33
class Solve15 extends FileReader {
44
constructor() {
55
super();
6-
this.readData("src/15/input.data")
6+
this.readData("src/15/test.data")
77
.then((data) => {
88
this.process(data.split("\n"));
99
})

src/15/test.data

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Sensor at x=2, y=18: closest beacon is at x=-2, y=15
2+
Sensor at x=9, y=16: closest beacon is at x=10, y=16
3+
Sensor at x=13, y=2: closest beacon is at x=15, y=3
4+
Sensor at x=12, y=14: closest beacon is at x=10, y=16
5+
Sensor at x=10, y=20: closest beacon is at x=10, y=16
6+
Sensor at x=14, y=17: closest beacon is at x=10, y=16
7+
Sensor at x=8, y=7: closest beacon is at x=2, y=10
8+
Sensor at x=2, y=0: closest beacon is at x=2, y=10
9+
Sensor at x=0, y=11: closest beacon is at x=2, y=10
10+
Sensor at x=20, y=14: closest beacon is at x=25, y=17
11+
Sensor at x=17, y=20: closest beacon is at x=21, y=22
12+
Sensor at x=16, y=7: closest beacon is at x=15, y=3
13+
Sensor at x=14, y=3: closest beacon is at x=15, y=3
14+
Sensor at x=20, y=1: closest beacon is at x=15, y=3

0 commit comments

Comments
 (0)