Compare commits
No commits in common. "61ef345ff38ba1597f3e0a962668fa3c7924062e" and "cd250ddd352748660bcfd2ad79a91ed3595246d7" have entirely different histories.
61ef345ff3
...
cd250ddd35
|
|
@ -1,19 +1,11 @@
|
||||||
# IDE Config folders
|
|
||||||
**/.vscode
|
**/.vscode
|
||||||
**/.idea
|
**/.idea
|
||||||
.vs/
|
**/debug/
|
||||||
# Java compilation output?
|
**/target/
|
||||||
|
**/*rs.bk
|
||||||
**/.vsidx
|
**/.vsidx
|
||||||
**/.suo
|
**/.suo
|
||||||
# C# compilation output
|
**/obj
|
||||||
debug/
|
**/bin
|
||||||
bin/
|
**/.vs
|
||||||
obj/
|
|
||||||
# The game inputs will be in .txt
|
|
||||||
*.txt
|
*.txt
|
||||||
# Cargo compilation output
|
|
||||||
debug/
|
|
||||||
target/
|
|
||||||
# Rust fmt stuff
|
|
||||||
**/*.rs.bk
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
|
|
||||||
mod day1;
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
day1::run_day1()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
version = 3
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "advent_of_code"
|
name = "day1"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "advent_of_code"
|
name = "day1"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
pub fn run_day1(){
|
fn main() {
|
||||||
let contents = fs::read_to_string("input.txt").expect("Could not read the file");
|
let contents = fs::read_to_string("input.txt").expect("Could not read the file");
|
||||||
|
|
||||||
let first_total_calibration_value = first_impl(&contents);
|
let first_total_calibration_value = first_impl(&contents);
|
||||||
Loading…
Reference in New Issue