fixed syntax
This commit is contained in:
parent
86741bfafb
commit
8896610dac
3 changed files with 5 additions and 6 deletions
|
|
@ -7,8 +7,8 @@ impl Solution for Day04 {
|
|||
fn part_1(&self, input: &str) -> Answer {
|
||||
let lines: Vec<&str> = input.split("\n").collect();
|
||||
let cards = lines.iter()
|
||||
.map(|l| l.split_once(": ").
|
||||
unwrap()
|
||||
.map(|l| l.split_once(": ")
|
||||
.unwrap()
|
||||
.1
|
||||
.split_once(" | ")
|
||||
.unwrap())
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ impl Solution for Day08 {
|
|||
return Answer::from(steps)
|
||||
}
|
||||
}
|
||||
|
||||
Answer::Unimplemented
|
||||
panic!()
|
||||
}
|
||||
|
||||
fn part_2(&self, input: &str) -> Answer {
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ use std::time::Instant;
|
|||
fn main() {
|
||||
let now = Instant::now();
|
||||
|
||||
let Ok(data) = load_actual(2023, 7)
|
||||
let Ok(data) = load_actual(2023, 6)
|
||||
else { return; };
|
||||
|
||||
let result = aoc2023::day07::Day07.part_2(&data);
|
||||
let result = aoc2023::day06::Day06.part_2(&data);
|
||||
|
||||
let elapsed = now.elapsed();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue