Compare commits
2 Commits
cd250ddd35
...
61ef345ff3
| Author | SHA1 | Date |
|---|---|---|
|
|
61ef345ff3 | |
|
|
b25d79ebf0 |
|
|
@ -1,11 +1,19 @@
|
||||||
|
# IDE Config folders
|
||||||
**/.vscode
|
**/.vscode
|
||||||
**/.idea
|
**/.idea
|
||||||
**/debug/
|
.vs/
|
||||||
**/target/
|
# Java compilation output?
|
||||||
**/*rs.bk
|
|
||||||
**/.vsidx
|
**/.vsidx
|
||||||
**/.suo
|
**/.suo
|
||||||
**/obj
|
# C# compilation output
|
||||||
**/bin
|
debug/
|
||||||
**/.vs
|
bin/
|
||||||
|
obj/
|
||||||
|
# The game inputs will be in .txt
|
||||||
*.txt
|
*.txt
|
||||||
|
# Cargo compilation output
|
||||||
|
debug/
|
||||||
|
target/
|
||||||
|
# Rust fmt stuff
|
||||||
|
**/*.rs.bk
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
version = 3
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "day1"
|
name = "advent_of_code"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "day1"
|
name = "advent_of_code"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
fn main() {
|
pub fn run_day1(){
|
||||||
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);
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
mod day1;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
day1::run_day1()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue