advent-of-code

advent of code (partial solutions)
Log | Files | Refs | README

commit 40a4f09685c6687dfa5a8e295d5eeb04e15160cb
parent 2db81fa57fe03d9d20482bb2d3a2e748373eb88b
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri,  3 Dec 2021 21:58:11 -0800

cleanup output

Diffstat:
M2021/README | 4++--
M2021/aoc01.rs | 4++--
M2021/aoc02.py | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/2021/README b/2021/README @@ -4,5 +4,5 @@ a number of different languages each solution contains both days and reads the input from stdin and outputs: -part 1: (answer) -part 2: (answer) +(part 1) +(part 2) diff --git a/2021/aoc01.rs b/2021/aoc01.rs @@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn Error>> { } threelast = three; } - println!("part 1: {}", total); - println!("part 2: {}", threetotal); + println!("{}", total); + println!("{}", threetotal); Ok(()) } diff --git a/2021/aoc02.py b/2021/aoc02.py @@ -19,6 +19,6 @@ for line in lines: if d == "down": d1 += count aim += count -print("part 1", x * d1) -print("part 2", x * d2) +print(x * d1) +print(x * d2)