We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd0703 commit 55b7f61Copy full SHA for 55b7f61
src/main.rs
@@ -43,7 +43,7 @@ fn main() {
43
let (part1, part2) = wrapper(data);
44
let elapsed = instant.elapsed();
45
46
- solved += 1;
+ solved += 2;
47
duration += elapsed;
48
49
println!("{BOLD}{YELLOW}{year} Day {day:02}{RESET}");
@@ -57,9 +57,11 @@ fn main() {
57
}
58
59
60
- // Print totals
61
- println!("{BOLD}{RED}Solved: {solved}{RESET}");
62
- println!("{BOLD}{GREEN}Duration: {} ms{RESET}", duration.as_millis());
+ // Optionally print totals
+ if args().any(|a| a == "--totals") {
+ println!("{BOLD}{YELLOW}⭐ {solved}{RESET}");
63
+ println!("{BOLD}{WHITE}🕓 {} ms{RESET}", duration.as_millis());
64
+ }
65
66
67
struct Solution {
0 commit comments