y2015d18
This commit is contained in:
@@ -14,8 +14,8 @@ fn part1() {
|
||||
}
|
||||
|
||||
fn part2() {
|
||||
let root = env!("CARGO_MANIFEST_DIR");
|
||||
let content = fs::read_to_string(format!("{root}/resources/15_input.txt")).unwrap();
|
||||
//let root = env!("CARGO_MANIFEST_DIR");
|
||||
//let content = fs::read_to_string(format!("{root}/resources/15_input.txt")).unwrap();
|
||||
// change comments in part1
|
||||
//println!("{}", d15::process_part2(&content));
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@ fn main() {
|
||||
fn part1() {
|
||||
let root = env!("CARGO_MANIFEST_DIR");
|
||||
let content = fs::read_to_string(format!("{root}/resources/18_input.txt")).unwrap();
|
||||
println!("{}", d18::process_part1(&content));
|
||||
println!("{}", d18::process_part1(&content, 100));
|
||||
}
|
||||
|
||||
fn part2() {
|
||||
let root = env!("CARGO_MANIFEST_DIR");
|
||||
let content = fs::read_to_string(format!("{root}/resources/18_input.txt")).unwrap();
|
||||
println!("{}", d18::process_part2(&content));
|
||||
println!("{}", d18::process_part2(&content, 100));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user