Start van dag 9 aoc, nog geen inhoud
This commit is contained in:
6
advent_of_code/2024/9/Cargo.toml
Normal file
6
advent_of_code/2024/9/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "main"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
1
advent_of_code/2024/9/input.txt
Normal file
1
advent_of_code/2024/9/input.txt
Normal file
File diff suppressed because one or more lines are too long
33
advent_of_code/2024/9/src/main.rs
Normal file
33
advent_of_code/2024/9/src/main.rs
Normal 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() {}
|
||||
}
|
||||
1
advent_of_code/2024/9/test.txt
Normal file
1
advent_of_code/2024/9/test.txt
Normal file
@@ -0,0 +1 @@
|
||||
2333133121414131402
|
||||
Reference in New Issue
Block a user