2023-12-05 12:36:28 -08:00
|
|
|
use std::fs::File;
|
|
|
|
use std::io::{BufRead, BufReader, Lines};
|
|
|
|
|
|
|
|
// BOILERPLATE
|
|
|
|
type InputIter = Lines<BufReader<File>>;
|
|
|
|
|
|
|
|
fn get_input() -> InputIter {
|
|
|
|
let f = File::open("input").unwrap();
|
|
|
|
let br = BufReader::new(f);
|
|
|
|
br.lines()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("Problem 1 solution: {}", problem1(get_input()));
|
|
|
|
println!("Problem 2 solution: {}", problem2(get_input()));
|
|
|
|
}
|
|
|
|
|
|
|
|
// PROBLEM 1 solution
|
|
|
|
|
2023-12-05 21:46:11 -08:00
|
|
|
fn problem1<T: BufRead>(input: Lines<T>) -> u64 {
|
2023-12-05 12:36:28 -08:00
|
|
|
0
|
|
|
|
}
|
|
|
|
|
|
|
|
// PROBLEM 2 solution
|
2023-12-05 21:46:11 -08:00
|
|
|
fn problem2<T: BufRead>(input: Lines<T>) -> u64 {
|
2023-12-05 12:36:28 -08:00
|
|
|
0
|
|
|
|
}
|