Compare commits
2 Commits
0000038084
...
00000400b1
Author | SHA1 | Date |
---|---|---|
Matej Janezic | 00000400b1 | |
Matej Janezic | 00000390f2 |
|
@ -19,7 +19,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aoc"
|
name = "aoc"
|
||||||
version = "38.0.0"
|
version = "40.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools",
|
"itertools",
|
||||||
]
|
]
|
||||||
|
@ -105,7 +105,7 @@ checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "download"
|
name = "download"
|
||||||
version = "38.0.0"
|
version = "40.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dotenvy",
|
"dotenvy",
|
||||||
"pico-args",
|
"pico-args",
|
||||||
|
@ -643,7 +643,7 @@ checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "scaffold"
|
name = "scaffold"
|
||||||
version = "38.0.0"
|
version = "40.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dotenvy",
|
"dotenvy",
|
||||||
"pico-args",
|
"pico-args",
|
||||||
|
|
|
@ -19,7 +19,7 @@ members = ["utils/download", "utils/scaffold"]
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
description = "template for advent of code"
|
description = "template for advent of code"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "38.0.0"
|
version = "40.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
|
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
|
||||||
|
|
|
@ -36,9 +36,9 @@ macro_rules! solution {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let input = aoc::read_file("inputs", 1);
|
let input = aoc::read_file("inputs", 1);
|
||||||
println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
|
print!("{}Part {}{}: ", ANSI_BOLD, 1, ANSI_RESET);
|
||||||
print_result(part_one, &input);
|
print_result(part_one, &input);
|
||||||
println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
|
print!("{}Part {}{}: ", ANSI_BOLD, 2, ANSI_RESET);
|
||||||
print_result(part_two, &input);
|
print_result(part_two, &input);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,7 +39,7 @@ fn main() {
|
||||||
.text()
|
.text()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let input_path = format!("src/inputs/{day_padded}.txt");
|
let input_path = format!("data/inputs/{day_padded}.txt");
|
||||||
let mut file = match OpenOptions::new()
|
let mut file = match OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
|
|
Loading…
Reference in New Issue