1
0
Fork 0
This commit is contained in:
Lars Martens 2025-12-11 07:56:29 +01:00
parent 8673603676
commit 180bdf9ce2
Signed by: haselkern
GPG key ID: B5CF1F363C179AD4
2 changed files with 83 additions and 6 deletions

View file

@ -1,16 +1,16 @@
use aoc::*;
const INPUT: &str = include_str!("../../input/DAY");
fn main() {
println!("Part 1: {}", part1(INPUT));
println!("Part 2: {}", part2(INPUT));
let input = include_str!("../../input/DAY");
println!("Part 1: {}", part1(input));
println!("Part 2: {}", part2(input));
}
#[test]
fn example() {
assert_example!(part1, "DAY-test", 0);
assert_example!(part2, "DAY-test", 0);
let input = include_str!("../../input/DAY-test");
assert_eq!(part1(input), 0);
assert_eq!(part2(input), 0);
}
fn part1(input: &str) -> usize {