summaryrefslogtreecommitdiff
path: root/template/main.rs
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2024-12-01 12:01:00 +0000
committermhsn <mail@mhsn.net>2024-12-01 12:01:00 +0000
commit9015922392c9881ca62871692c3a6671243c1fe3 (patch)
tree3ced4980927b65675c07cfc0d8967feba85cf3b7 /template/main.rs
parent0b1a6fc65a62a656bef6055027faf2f5e1f3235a (diff)
downloadaoc-9015922392c9881ca62871692c3a6671243c1fe3.tar.gz
aoc-9015922392c9881ca62871692c3a6671243c1fe3.zip
Add util scripts
Diffstat (limited to 'template/main.rs')
-rw-r--r--template/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/template/main.rs b/template/main.rs
new file mode 100644
index 0000000..88bdc79
--- /dev/null
+++ b/template/main.rs
@@ -0,0 +1,14 @@
+use std::io;
+
+fn main() -> io::Result<()> {
+ for line in io::stdin().lines() {
+ let _line = line?;
+ }
+
+ let silver: u64 = 0;
+ let gold: u64 = 0;
+ println!("silver: {silver}");
+ println!("gold: {gold}");
+
+ return Ok(());
+}