Skip to content

Commit f1481fa

Browse files
committed
Day 16 - Proboscidea Volcanium 🌋
1 parent ca525f4 commit f1481fa

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Day-16
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- '**16*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Build
16+
run: cargo build --release --verbose
17+
- name: Run
18+
run: time target/release/aoc 16

‎src/day_16.data‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Valve SY has flow rate=0; tunnels lead to valves GW, LW
2+
Valve TS has flow rate=0; tunnels lead to valves CC, OP
3+
Valve LU has flow rate=0; tunnels lead to valves PS, XJ
4+
Valve ND has flow rate=0; tunnels lead to valves EN, TL
5+
Valve PD has flow rate=0; tunnels lead to valves TL, LI
6+
Valve VF has flow rate=0; tunnels lead to valves LW, RX
7+
Valve LD has flow rate=0; tunnels lead to valves AD, LP
8+
Valve DG has flow rate=0; tunnels lead to valves DR, SS
9+
Valve IG has flow rate=8; tunnels lead to valves AN, YA, GA
10+
Valve LK has flow rate=0; tunnels lead to valves HQ, LW
11+
Valve TD has flow rate=14; tunnels lead to valves BG, CQ
12+
Valve CQ has flow rate=0; tunnels lead to valves TD, HD
13+
Valve AZ has flow rate=0; tunnels lead to valves AD, XW
14+
Valve ZU has flow rate=0; tunnels lead to valves TL, AN
15+
Valve HD has flow rate=0; tunnels lead to valves BP, CQ
16+
Valve FX has flow rate=0; tunnels lead to valves LW, XM
17+
Valve CU has flow rate=18; tunnels lead to valves BX, VA, RX, DF
18+
Valve SS has flow rate=17; tunnels lead to valves DG, ZD, ZG
19+
Valve BP has flow rate=19; tunnels lead to valves HD, ZD
20+
Valve DZ has flow rate=0; tunnels lead to valves XS, CC
21+
Valve PS has flow rate=0; tunnels lead to valves GH, LU
22+
Valve TA has flow rate=0; tunnels lead to valves LI, AA
23+
Valve BG has flow rate=0; tunnels lead to valves TD, ZG
24+
Valve WP has flow rate=0; tunnels lead to valves OB, AA
25+
Valve XS has flow rate=9; tunnels lead to valves EN, DZ
26+
Valve AA has flow rate=0; tunnels lead to valves WG, GA, VO, WP, TA
27+
Valve LW has flow rate=25; tunnels lead to valves LK, FX, SY, VF
28+
Valve AD has flow rate=23; tunnels lead to valves DF, GW, AZ, LD, FM
29+
Valve EN has flow rate=0; tunnels lead to valves ND, XS
30+
Valve ZG has flow rate=0; tunnels lead to valves SS, BG
31+
Valve LI has flow rate=11; tunnels lead to valves YA, XM, TA, PD
32+
Valve VO has flow rate=0; tunnels lead to valves AA, OD
33+
Valve AN has flow rate=0; tunnels lead to valves IG, ZU
34+
Valve GH has flow rate=15; tunnels lead to valves VA, PS
35+
Valve OP has flow rate=4; tunnels lead to valves AJ, TS, FM, BX, NM
36+
Valve BX has flow rate=0; tunnels lead to valves OP, CU
37+
Valve RX has flow rate=0; tunnels lead to valves CU, VF
38+
Valve FM has flow rate=0; tunnels lead to valves OP, AD
39+
Valve OB has flow rate=0; tunnels lead to valves WP, XW
40+
Valve CC has flow rate=3; tunnels lead to valves QS, LP, DZ, OD, TS
41+
Valve LP has flow rate=0; tunnels lead to valves LD, CC
42+
Valve NM has flow rate=0; tunnels lead to valves WH, OP
43+
Valve HQ has flow rate=0; tunnels lead to valves XW, LK
44+
Valve GW has flow rate=0; tunnels lead to valves SY, AD
45+
Valve QS has flow rate=0; tunnels lead to valves CC, XW
46+
Valve DF has flow rate=0; tunnels lead to valves AD, CU
47+
Valve XM has flow rate=0; tunnels lead to valves LI, FX
48+
Valve VA has flow rate=0; tunnels lead to valves CU, GH
49+
Valve GA has flow rate=0; tunnels lead to valves IG, AA
50+
Valve YA has flow rate=0; tunnels lead to valves LI, IG
51+
Valve XW has flow rate=20; tunnels lead to valves OB, HQ, QS, WH, AZ
52+
Valve XJ has flow rate=24; tunnel leads to valve LU
53+
Valve AJ has flow rate=0; tunnels lead to valves WG, OP
54+
Valve WH has flow rate=0; tunnels lead to valves XW, NM
55+
Valve TL has flow rate=13; tunnels lead to valves PD, DR, ZU, ND
56+
Valve OD has flow rate=0; tunnels lead to valves CC, VO
57+
Valve ZD has flow rate=0; tunnels lead to valves SS, BP
58+
Valve DR has flow rate=0; tunnels lead to valves DG, TL
59+
Valve WG has flow rate=0; tunnels lead to valves AJ, AA

‎src/day_16.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use crate::input_reader;
2+
3+
pub fn run() {
4+
let input = input_reader::read_file_in_cwd("src/day_16.data");
5+
}

0 commit comments

Comments
 (0)