|
1 | 1 |
|
2 | 2 | fn main() {
|
3 | 3 |
|
4 |
| - println!("Hello world! You're reading the Advent of code solutions by Gabor Javorszky.\n"); |
| 4 | + println!("You're reading the Advent of Code 2024 solutions by Gabor Javorszky."); |
| 5 | + println!("Find the source code at https://github.com/javorszky/adventofcode2024."); |
5 | 6 |
|
6 | 7 | // Day 01
|
7 |
| - // let d1 = day01::Day01::new(); |
8 |
| - // println!("Day 1 part 1: {}", d1.solve()); |
9 |
| - // println!("Day 1 part 2: {}\n", d1.solve_two()); |
| 8 | + let d1 = day01::Day01::new(); |
| 9 | + println!("\nDay 1 part 1: {}.", d1.solve()); |
| 10 | + println!("Day 1 part 2: {}.", d1.solve_two()); |
10 | 11 |
|
11 | 12 | // Day 02
|
12 |
| - // let d2 = day02::Day02::new(); |
13 |
| - // println!("Day 2 part 1: {}", d2.part1()); |
14 |
| - // let (_, result) = d2.part2(); |
15 |
| - // println!("Day 2 part 2: {}", result); |
| 13 | + let d2 = day02::Day02::new(); |
| 14 | + println!("\nDay 2 part 1: {}.", d2.part1()); |
| 15 | + let (_, result) = d2.part2(); |
| 16 | + println!("Day 2 part 2: {}.", result); |
16 | 17 |
|
17 | 18 | // Day 03
|
18 |
| - // let d3 = day03::Day03::new(); |
19 |
| - // println!("Day 3 part 1: sum of valid mul products is {}", d3.part1()); |
20 |
| - // |
21 |
| - // println!("Day 3 part 2: {}", d3.part2()); |
| 19 | + let d3 = day03::Day03::new(); |
| 20 | + println!("\nDay 3 part 1: sum of valid mul products is {}.", d3.part1()); |
22 | 21 |
|
23 |
| - println!("Day 4 part 1: {}", day04::part1()) |
| 22 | + println!("Day 3 part 2: sum of valid and enabled mul products is {}.", d3.part2()); |
| 23 | + |
| 24 | + println!("\nDay 4 part 1: number of XMAS words: {}.", day04::part1()); |
| 25 | + println!("Day 4 part 2: number of pair of MAS words in diagonal X shape: {}.", day04::part2()); |
24 | 26 | }
|
0 commit comments