Solve 11
This commit is contained in:
parent
8673603676
commit
180bdf9ce2
2 changed files with 83 additions and 6 deletions
12
template.rs
12
template.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue