1
0

Replace filename const by sanitise() function

This commit is contained in:
Stefan Müller
2025-12-08 17:07:34 +01:00
parent 449e7f75ac
commit c03eca490e
6 changed files with 27 additions and 14 deletions
-1
View File
@@ -8,7 +8,6 @@ pub struct Cafeteria {}
impl Solver for Cafeteria {
const PUZZLE_INDEX: u8 = 5;
const PUZZLE_NAME: &'static str = "Cafeteria";
const INPUT_FILENAME: &'static str = "cafeteria.txt";
fn process_data<R: BufRead>(&self, mut reader: R) -> (u64, u64) {
// Builds intervals collection.
-1
View File
@@ -7,7 +7,6 @@ pub struct PrintingDepartment {}
impl Solver for PrintingDepartment {
const PUZZLE_INDEX: u8 = 4;
const PUZZLE_NAME: &'static str = "Printing Department";
const INPUT_FILENAME: &'static str = "printing_department.txt";
fn process_data<R: BufRead>(&self, reader: R) -> (u64, u64) {
let mut grid = Grid::new(0, 0);
-1
View File
@@ -7,7 +7,6 @@ pub struct TrashCompactor {}
impl Solver for TrashCompactor {
const PUZZLE_INDEX: u8 = 6;
const PUZZLE_NAME: &'static str = "Trash Compactor";
const INPUT_FILENAME: &'static str = "trash_compactor.txt";
fn process_data<R: BufRead>(&self, reader: R) -> (u64, u64) {
let mut part1 = 0;