Skip to content

Commit

Permalink
chore(2023): prepare day 7
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Dec 6, 2023
1 parent 41de5bb commit e31486d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions rust/2023/src/day_07.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Day 7:

#[derive(Debug)]
pub struct Input {}

#[aoc_generator(day7)]
pub fn input_generator(input: &str) -> Input {
println!("{input}");
Input {}
}

/* Part One
*
*/
// Your puzzle answer was
/*
/// ```
/// use advent_of_code_2023::day_07::*;
/// let data = include_str!("../input/2023/day7.txt");
/// assert_eq!(solve_part_01(&input_generator(data)), 861300);
/// ```
*/
#[aoc(day7, part1)]
pub fn solve_part_01(_input: &Input) -> u64 {
0
}

/* Part Two
*
* Here we combine all the race times and distance from the previous data into
* two large numbers. This means we only have one race, but since the time
* is longer, we have a lot more ways to beat the record.
*
*/
/*
/// ```
/// use advent_of_code_2023::day_07::*;
/// let data = include_str!("../input/2023/day7.txt");
/// assert_eq!(solve_part_02(&input_generator(data)), 28101347);
/// ```
*/
#[aoc(day7, part2)]
pub fn solve_part_02(_input: &Input) -> u64 {
0
}

#[cfg(test)]
mod tests {
use super::*;

const DATA: &str = "";

#[test]
fn sample_01() {
assert_eq!(solve_part_01(&input_generator(DATA)), 0)
}
}
1 change: 1 addition & 0 deletions rust/2023/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ pub mod day_03;
pub mod day_04;
pub mod day_05;
pub mod day_06;
pub mod day_07;

aoc_lib! { year = 2023 }

0 comments on commit e31486d

Please sign in to comment.