From 4e7b2ce48b9e8f33a1ce73b54c079d574e6eb77f Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 29 Nov 2022 17:26:17 +0800 Subject: [PATCH] Initial commit --- .gitignore | 16 ++++++++++++++++ day_1/Cargo.toml | 8 ++++++++ day_1/src/main.rs | 3 +++ day_10/Cargo.toml | 8 ++++++++ day_10/src/main.rs | 3 +++ day_11/Cargo.toml | 8 ++++++++ day_11/src/main.rs | 3 +++ day_12/Cargo.toml | 8 ++++++++ day_12/src/main.rs | 3 +++ day_13/Cargo.toml | 8 ++++++++ day_13/src/main.rs | 3 +++ day_14/Cargo.toml | 8 ++++++++ day_14/src/main.rs | 3 +++ day_15/Cargo.toml | 8 ++++++++ day_15/src/main.rs | 3 +++ day_16/Cargo.toml | 8 ++++++++ day_16/src/main.rs | 3 +++ day_17/Cargo.toml | 8 ++++++++ day_17/src/main.rs | 3 +++ day_18/Cargo.toml | 8 ++++++++ day_18/src/main.rs | 3 +++ day_19/Cargo.toml | 8 ++++++++ day_19/src/main.rs | 3 +++ day_2/Cargo.toml | 8 ++++++++ day_2/src/main.rs | 3 +++ day_20/Cargo.toml | 8 ++++++++ day_20/src/main.rs | 3 +++ day_21/Cargo.toml | 8 ++++++++ day_21/src/main.rs | 3 +++ day_22/Cargo.toml | 8 ++++++++ day_22/src/main.rs | 3 +++ day_23/Cargo.toml | 8 ++++++++ day_23/src/main.rs | 3 +++ day_24/Cargo.toml | 8 ++++++++ day_24/src/main.rs | 3 +++ day_25/Cargo.toml | 8 ++++++++ day_25/src/main.rs | 3 +++ day_3/Cargo.toml | 8 ++++++++ day_3/src/main.rs | 3 +++ day_4/Cargo.toml | 8 ++++++++ day_4/src/main.rs | 3 +++ day_5/Cargo.toml | 8 ++++++++ day_5/src/main.rs | 3 +++ day_6/Cargo.toml | 8 ++++++++ day_6/src/main.rs | 3 +++ day_7/Cargo.toml | 8 ++++++++ day_7/src/main.rs | 3 +++ day_8/Cargo.toml | 8 ++++++++ day_8/src/main.rs | 3 +++ day_9/Cargo.toml | 8 ++++++++ day_9/src/main.rs | 3 +++ 51 files changed, 291 insertions(+) create mode 100644 .gitignore create mode 100644 day_1/Cargo.toml create mode 100644 day_1/src/main.rs create mode 100644 day_10/Cargo.toml create mode 100644 day_10/src/main.rs create mode 100644 day_11/Cargo.toml create mode 100644 day_11/src/main.rs create mode 100644 day_12/Cargo.toml create mode 100644 day_12/src/main.rs create mode 100644 day_13/Cargo.toml create mode 100644 day_13/src/main.rs create mode 100644 day_14/Cargo.toml create mode 100644 day_14/src/main.rs create mode 100644 day_15/Cargo.toml create mode 100644 day_15/src/main.rs create mode 100644 day_16/Cargo.toml create mode 100644 day_16/src/main.rs create mode 100644 day_17/Cargo.toml create mode 100644 day_17/src/main.rs create mode 100644 day_18/Cargo.toml create mode 100644 day_18/src/main.rs create mode 100644 day_19/Cargo.toml create mode 100644 day_19/src/main.rs create mode 100644 day_2/Cargo.toml create mode 100644 day_2/src/main.rs create mode 100644 day_20/Cargo.toml create mode 100644 day_20/src/main.rs create mode 100644 day_21/Cargo.toml create mode 100644 day_21/src/main.rs create mode 100644 day_22/Cargo.toml create mode 100644 day_22/src/main.rs create mode 100644 day_23/Cargo.toml create mode 100644 day_23/src/main.rs create mode 100644 day_24/Cargo.toml create mode 100644 day_24/src/main.rs create mode 100644 day_25/Cargo.toml create mode 100644 day_25/src/main.rs create mode 100644 day_3/Cargo.toml create mode 100644 day_3/src/main.rs create mode 100644 day_4/Cargo.toml create mode 100644 day_4/src/main.rs create mode 100644 day_5/Cargo.toml create mode 100644 day_5/src/main.rs create mode 100644 day_6/Cargo.toml create mode 100644 day_6/src/main.rs create mode 100644 day_7/Cargo.toml create mode 100644 day_7/src/main.rs create mode 100644 day_8/Cargo.toml create mode 100644 day_8/src/main.rs create mode 100644 day_9/Cargo.toml create mode 100644 day_9/src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..99f32d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +.vscode/ \ No newline at end of file diff --git a/day_1/Cargo.toml b/day_1/Cargo.toml new file mode 100644 index 0000000..05b9206 --- /dev/null +++ b/day_1/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_1" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_1/src/main.rs b/day_1/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_1/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_10/Cargo.toml b/day_10/Cargo.toml new file mode 100644 index 0000000..ee79115 --- /dev/null +++ b/day_10/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_10" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_10/src/main.rs b/day_10/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_10/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_11/Cargo.toml b/day_11/Cargo.toml new file mode 100644 index 0000000..c197a12 --- /dev/null +++ b/day_11/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_11" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_11/src/main.rs b/day_11/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_11/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_12/Cargo.toml b/day_12/Cargo.toml new file mode 100644 index 0000000..af8cc7a --- /dev/null +++ b/day_12/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_12" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_12/src/main.rs b/day_12/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_12/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_13/Cargo.toml b/day_13/Cargo.toml new file mode 100644 index 0000000..6d3e0f1 --- /dev/null +++ b/day_13/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_13" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_13/src/main.rs b/day_13/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_13/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_14/Cargo.toml b/day_14/Cargo.toml new file mode 100644 index 0000000..6fe6f5b --- /dev/null +++ b/day_14/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_14" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_14/src/main.rs b/day_14/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_14/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_15/Cargo.toml b/day_15/Cargo.toml new file mode 100644 index 0000000..15fb963 --- /dev/null +++ b/day_15/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_15" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_15/src/main.rs b/day_15/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_15/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_16/Cargo.toml b/day_16/Cargo.toml new file mode 100644 index 0000000..1756116 --- /dev/null +++ b/day_16/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_16" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_16/src/main.rs b/day_16/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_16/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_17/Cargo.toml b/day_17/Cargo.toml new file mode 100644 index 0000000..291aa5c --- /dev/null +++ b/day_17/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_17" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_17/src/main.rs b/day_17/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_17/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_18/Cargo.toml b/day_18/Cargo.toml new file mode 100644 index 0000000..ff9650e --- /dev/null +++ b/day_18/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_18" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_18/src/main.rs b/day_18/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_18/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_19/Cargo.toml b/day_19/Cargo.toml new file mode 100644 index 0000000..cfa20d1 --- /dev/null +++ b/day_19/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_19" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_19/src/main.rs b/day_19/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_19/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_2/Cargo.toml b/day_2/Cargo.toml new file mode 100644 index 0000000..8f58597 --- /dev/null +++ b/day_2/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_2" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_2/src/main.rs b/day_2/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_2/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_20/Cargo.toml b/day_20/Cargo.toml new file mode 100644 index 0000000..751281b --- /dev/null +++ b/day_20/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_20" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_20/src/main.rs b/day_20/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_20/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_21/Cargo.toml b/day_21/Cargo.toml new file mode 100644 index 0000000..f6a04c7 --- /dev/null +++ b/day_21/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_21" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_21/src/main.rs b/day_21/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_21/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_22/Cargo.toml b/day_22/Cargo.toml new file mode 100644 index 0000000..65b42e7 --- /dev/null +++ b/day_22/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_22" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_22/src/main.rs b/day_22/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_22/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_23/Cargo.toml b/day_23/Cargo.toml new file mode 100644 index 0000000..53cfc33 --- /dev/null +++ b/day_23/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_23" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_23/src/main.rs b/day_23/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_23/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_24/Cargo.toml b/day_24/Cargo.toml new file mode 100644 index 0000000..8750351 --- /dev/null +++ b/day_24/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_24" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_24/src/main.rs b/day_24/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_24/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_25/Cargo.toml b/day_25/Cargo.toml new file mode 100644 index 0000000..9c91d77 --- /dev/null +++ b/day_25/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_25" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_25/src/main.rs b/day_25/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_25/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_3/Cargo.toml b/day_3/Cargo.toml new file mode 100644 index 0000000..65c9609 --- /dev/null +++ b/day_3/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_3" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_3/src/main.rs b/day_3/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_3/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_4/Cargo.toml b/day_4/Cargo.toml new file mode 100644 index 0000000..e358d26 --- /dev/null +++ b/day_4/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_4" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_4/src/main.rs b/day_4/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_4/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_5/Cargo.toml b/day_5/Cargo.toml new file mode 100644 index 0000000..44afc53 --- /dev/null +++ b/day_5/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_5" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_5/src/main.rs b/day_5/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_5/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_6/Cargo.toml b/day_6/Cargo.toml new file mode 100644 index 0000000..b2a2c35 --- /dev/null +++ b/day_6/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_6" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_6/src/main.rs b/day_6/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_6/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_7/Cargo.toml b/day_7/Cargo.toml new file mode 100644 index 0000000..e1efecd --- /dev/null +++ b/day_7/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_7" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_7/src/main.rs b/day_7/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_7/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_8/Cargo.toml b/day_8/Cargo.toml new file mode 100644 index 0000000..8069bdc --- /dev/null +++ b/day_8/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_8" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_8/src/main.rs b/day_8/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_8/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/day_9/Cargo.toml b/day_9/Cargo.toml new file mode 100644 index 0000000..64f4252 --- /dev/null +++ b/day_9/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "day_9" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/day_9/src/main.rs b/day_9/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/day_9/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}