Skip to content

My attempt at Advent of Code 2022 using Rust

Notifications You must be signed in to change notification settings

applejag/adventofcode-2022-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022 via Rust

This repo contains my attempt at Advent of Code 2022 (https://adventofcode.com/2022).

Running

Requires Rust: https://rustup.rs/

$ cargo run -- day01
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/adventofcode-2022-rust day01`
>>> day01, part1
>>> file: inputs/day01.txt
Lines: 2244
Biggest sum: 66306
$ cargo run -- day01 part2
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/adventofcode-2022-rust day01 part2`
>>> day01, part2
>>> file: inputs/day01.txt
Lines: 2244
0: 66306
1: 64532
2: 64454
Sum: 195292