-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
|
||
fn main() { | ||
|
||
println!("Hello world! You're reading the Advent of code solutions by Gabor Javorszky.\n"); | ||
println!("You're reading the Advent of Code 2024 solutions by Gabor Javorszky."); | ||
println!("Find the source code at https://github.com/javorszky/adventofcode2024."); | ||
|
||
// Day 01 | ||
// let d1 = day01::Day01::new(); | ||
// println!("Day 1 part 1: {}", d1.solve()); | ||
// println!("Day 1 part 2: {}\n", d1.solve_two()); | ||
let d1 = day01::Day01::new(); | ||
println!("\nDay 1 part 1: {}.", d1.solve()); | ||
println!("Day 1 part 2: {}.", d1.solve_two()); | ||
|
||
// Day 02 | ||
// let d2 = day02::Day02::new(); | ||
// println!("Day 2 part 1: {}", d2.part1()); | ||
// let (_, result) = d2.part2(); | ||
// println!("Day 2 part 2: {}", result); | ||
let d2 = day02::Day02::new(); | ||
println!("\nDay 2 part 1: {}.", d2.part1()); | ||
let (_, result) = d2.part2(); | ||
println!("Day 2 part 2: {}.", result); | ||
|
||
// Day 03 | ||
// let d3 = day03::Day03::new(); | ||
// println!("Day 3 part 1: sum of valid mul products is {}", d3.part1()); | ||
// | ||
// println!("Day 3 part 2: {}", d3.part2()); | ||
let d3 = day03::Day03::new(); | ||
println!("\nDay 3 part 1: sum of valid mul products is {}.", d3.part1()); | ||
|
||
println!("Day 4 part 1: {}", day04::part1()) | ||
println!("Day 3 part 2: sum of valid and enabled mul products is {}.", d3.part2()); | ||
|
||
println!("\nDay 4 part 1: number of XMAS words: {}.", day04::part1()); | ||
println!("Day 4 part 2: number of pair of MAS words in diagonal X shape: {}.", day04::part2()); | ||
} |