diff --git a/rust/src/day01.rs b/rust/src/day01.rs index bd35b81..ef20a6e 100644 --- a/rust/src/day01.rs +++ b/rust/src/day01.rs @@ -1,7 +1,7 @@ use std::{collections::HashMap, time::Duration, time::Instant}; pub fn run(print: bool) -> Duration { - let file_string = std::fs::read_to_string("inputs/day01").unwrap(); + let file_string = std::fs::read_to_string("../inputs/01").unwrap(); let instant = Instant::now(); let entries: Vec = file_string.lines().flat_map(|line| line.parse()).collect(); diff --git a/rust/src/day02.rs b/rust/src/day02.rs index 4f3ca55..dcc7df5 100644 --- a/rust/src/day02.rs +++ b/rust/src/day02.rs @@ -1,7 +1,7 @@ use std::time::{Duration, Instant}; pub fn run(print: bool) -> Duration { - let file_string = std::fs::read_to_string("inputs/day02").unwrap(); + let file_string = std::fs::read_to_string("../inputs/02").unwrap(); let instant = Instant::now(); let rules: Vec<(usize, usize, char, &str)> = file_string diff --git a/rust/src/day03.rs b/rust/src/day03.rs index bd06199..00cf4e5 100644 --- a/rust/src/day03.rs +++ b/rust/src/day03.rs @@ -16,7 +16,7 @@ fn count(rows: &[Vec], dx: usize, dy: usize) -> usize { } pub fn run(print: bool) -> Duration { - let file_string = std::fs::read_to_string("inputs/day3").unwrap(); + let file_string = std::fs::read_to_string("../inputs/03").unwrap(); let instant = Instant::now(); diff --git a/rust/src/day04.rs b/rust/src/day04.rs index fc24f88..3c100d5 100644 --- a/rust/src/day04.rs +++ b/rust/src/day04.rs @@ -6,7 +6,7 @@ fn between(field: &str, lower: i32, higher: i32) -> bool { } pub fn run(print: bool) -> Duration { - let input = std::fs::read_to_string("inputs/day04").unwrap(); + let input = std::fs::read_to_string("../inputs/04").unwrap(); let now = Instant::now(); diff --git a/rust/src/day05.rs b/rust/src/day05.rs index 66dc7e2..fbbd2da 100644 --- a/rust/src/day05.rs +++ b/rust/src/day05.rs @@ -1,7 +1,7 @@ use std::time::{Duration, Instant}; pub fn run(print: bool) -> Duration { - let input = std::fs::read_to_string("inputs/day05").unwrap(); + let input = std::fs::read_to_string("../inputs/05").unwrap(); let instant = Instant::now(); let passes: Vec<_> = input.lines().collect(); diff --git a/rust/src/day08.rs b/rust/src/day08.rs index 0cf4aa5..8f7aa2c 100644 --- a/rust/src/day08.rs +++ b/rust/src/day08.rs @@ -62,7 +62,7 @@ fn part2(instructions: &[Instruction], skip: i32) -> Option { } pub fn run(print: bool) -> Duration { - let input = std::fs::read_to_string("inputs/day08").unwrap(); + let input = std::fs::read_to_string("../inputs/08").unwrap(); let instant = Instant::now(); let instructions: Vec<_> = input