From f1481faa02ef73bd80b369bbe2cf8fc2e15c8383 Mon Sep 17 00:00:00 2001 From: Leif Gehrmann Date: Sat, 17 Dec 2022 17:53:56 +0000 Subject: [PATCH] =?UTF-8?q?Day=2016=20-=20Proboscidea=20Volcanium=20?= =?UTF-8?q?=F0=9F=8C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Day-16.yml | 18 +++++++++++ src/day_16.data | 59 ++++++++++++++++++++++++++++++++++++ src/day_16.rs | 5 +++ 3 files changed, 82 insertions(+) create mode 100644 .github/workflows/Day-16.yml create mode 100644 src/day_16.data create mode 100644 src/day_16.rs diff --git a/.github/workflows/Day-16.yml b/.github/workflows/Day-16.yml new file mode 100644 index 0000000..8033697 --- /dev/null +++ b/.github/workflows/Day-16.yml @@ -0,0 +1,18 @@ +name: Day-16 + +on: + workflow_dispatch: + push: + paths: + - '**16*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --release --verbose + - name: Run + run: time target/release/aoc 16 diff --git a/src/day_16.data b/src/day_16.data new file mode 100644 index 0000000..78feeee --- /dev/null +++ b/src/day_16.data @@ -0,0 +1,59 @@ +Valve SY has flow rate=0; tunnels lead to valves GW, LW +Valve TS has flow rate=0; tunnels lead to valves CC, OP +Valve LU has flow rate=0; tunnels lead to valves PS, XJ +Valve ND has flow rate=0; tunnels lead to valves EN, TL +Valve PD has flow rate=0; tunnels lead to valves TL, LI +Valve VF has flow rate=0; tunnels lead to valves LW, RX +Valve LD has flow rate=0; tunnels lead to valves AD, LP +Valve DG has flow rate=0; tunnels lead to valves DR, SS +Valve IG has flow rate=8; tunnels lead to valves AN, YA, GA +Valve LK has flow rate=0; tunnels lead to valves HQ, LW +Valve TD has flow rate=14; tunnels lead to valves BG, CQ +Valve CQ has flow rate=0; tunnels lead to valves TD, HD +Valve AZ has flow rate=0; tunnels lead to valves AD, XW +Valve ZU has flow rate=0; tunnels lead to valves TL, AN +Valve HD has flow rate=0; tunnels lead to valves BP, CQ +Valve FX has flow rate=0; tunnels lead to valves LW, XM +Valve CU has flow rate=18; tunnels lead to valves BX, VA, RX, DF +Valve SS has flow rate=17; tunnels lead to valves DG, ZD, ZG +Valve BP has flow rate=19; tunnels lead to valves HD, ZD +Valve DZ has flow rate=0; tunnels lead to valves XS, CC +Valve PS has flow rate=0; tunnels lead to valves GH, LU +Valve TA has flow rate=0; tunnels lead to valves LI, AA +Valve BG has flow rate=0; tunnels lead to valves TD, ZG +Valve WP has flow rate=0; tunnels lead to valves OB, AA +Valve XS has flow rate=9; tunnels lead to valves EN, DZ +Valve AA has flow rate=0; tunnels lead to valves WG, GA, VO, WP, TA +Valve LW has flow rate=25; tunnels lead to valves LK, FX, SY, VF +Valve AD has flow rate=23; tunnels lead to valves DF, GW, AZ, LD, FM +Valve EN has flow rate=0; tunnels lead to valves ND, XS +Valve ZG has flow rate=0; tunnels lead to valves SS, BG +Valve LI has flow rate=11; tunnels lead to valves YA, XM, TA, PD +Valve VO has flow rate=0; tunnels lead to valves AA, OD +Valve AN has flow rate=0; tunnels lead to valves IG, ZU +Valve GH has flow rate=15; tunnels lead to valves VA, PS +Valve OP has flow rate=4; tunnels lead to valves AJ, TS, FM, BX, NM +Valve BX has flow rate=0; tunnels lead to valves OP, CU +Valve RX has flow rate=0; tunnels lead to valves CU, VF +Valve FM has flow rate=0; tunnels lead to valves OP, AD +Valve OB has flow rate=0; tunnels lead to valves WP, XW +Valve CC has flow rate=3; tunnels lead to valves QS, LP, DZ, OD, TS +Valve LP has flow rate=0; tunnels lead to valves LD, CC +Valve NM has flow rate=0; tunnels lead to valves WH, OP +Valve HQ has flow rate=0; tunnels lead to valves XW, LK +Valve GW has flow rate=0; tunnels lead to valves SY, AD +Valve QS has flow rate=0; tunnels lead to valves CC, XW +Valve DF has flow rate=0; tunnels lead to valves AD, CU +Valve XM has flow rate=0; tunnels lead to valves LI, FX +Valve VA has flow rate=0; tunnels lead to valves CU, GH +Valve GA has flow rate=0; tunnels lead to valves IG, AA +Valve YA has flow rate=0; tunnels lead to valves LI, IG +Valve XW has flow rate=20; tunnels lead to valves OB, HQ, QS, WH, AZ +Valve XJ has flow rate=24; tunnel leads to valve LU +Valve AJ has flow rate=0; tunnels lead to valves WG, OP +Valve WH has flow rate=0; tunnels lead to valves XW, NM +Valve TL has flow rate=13; tunnels lead to valves PD, DR, ZU, ND +Valve OD has flow rate=0; tunnels lead to valves CC, VO +Valve ZD has flow rate=0; tunnels lead to valves SS, BP +Valve DR has flow rate=0; tunnels lead to valves DG, TL +Valve WG has flow rate=0; tunnels lead to valves AJ, AA \ No newline at end of file diff --git a/src/day_16.rs b/src/day_16.rs new file mode 100644 index 0000000..0ff10ce --- /dev/null +++ b/src/day_16.rs @@ -0,0 +1,5 @@ +use crate::input_reader; + +pub fn run() { + let input = input_reader::read_file_in_cwd("src/day_16.data"); +}