This commit is contained in:
Spectre 2024-12-03 02:06:24 +01:00
parent 19fe0a53ff
commit 2c9790a690
7 changed files with 48 additions and 26 deletions

View file

@ -37,7 +37,7 @@ impl Solution for Day01 {
fn parse(input: &str) -> (Vec<u32>, Vec<u32>) {
input.lines()
.map(|line| line.split_once(" ")
.unwrap()
.expect(line)
)
.map(|(x, y)| (x.parse::<u32>().unwrap(), y.parse::<u32>().unwrap()))
.unzip()