day 03 part 1

This commit is contained in:
Spectre 2023-12-08 13:59:09 +01:00
parent 529e2fad5c
commit d8816f70d7
10 changed files with 260 additions and 25 deletions

View file

@ -0,0 +1,11 @@
use std::{fs, io};
pub fn load_actual(year: u64, day: u64) -> io::Result<String> {
let path = format!("./data/{year}/day{:02}", day);
fs::read_to_string(path)
}
pub fn load_test(year: u64, day: u64) -> io::Result<String> {
let path = format!("./examples/{year}/day{:02}", day);
fs::read_to_string(path)
}