Start van dag 9 aoc, nog geen inhoud

This commit is contained in:
2024-12-09 17:29:40 +01:00
parent 91bfb654c3
commit 266e0cf180
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
[package]
name = "main"
version = "0.1.0"
edition = "2021"
[dependencies]

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,33 @@
struct Tree {
}
fn solve_1(input: &str) -> u32 {}
fn solve_2(input: &str) {}
fn main() {
println!("Hello, this is Patrick!");
let input = include_str!("../input.txt");
let result_1 = solve_1(input);
println!("The checksum is {}", result_1);
let result_2 = solve_2(input);
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_1() {
let test_input = include_str!("../test.txt");
assert_eq!(solve_1(test_input), 1928);
}
#[test]
fn test_2() {}
}

View File

@@ -0,0 +1 @@
2333133121414131402