aboutsummaryrefslogtreecommitdiff
path: root/2022/23/b.rs
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-09 10:23:07 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-09 10:23:07 +0200
commit9637b5a1f8d10e3003651c5d9006f0e102f74f18 (patch)
treeb9b532c6744f1dd1c4359783ab41f37768c81269 /2022/23/b.rs
parentdbb5a4e5711fba371fbb011356bcd8a28cc963e4 (diff)
downloadaoc-9637b5a1f8d10e3003651c5d9006f0e102f74f18.tar.gz
aoc-9637b5a1f8d10e3003651c5d9006f0e102f74f18.zip
Day 23 2022
Diffstat (limited to '2022/23/b.rs')
-rw-r--r--2022/23/b.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/2022/23/b.rs b/2022/23/b.rs
new file mode 100644
index 0000000..20868b9
--- /dev/null
+++ b/2022/23/b.rs
@@ -0,0 +1,12 @@
1mod common;
2use common::*;
3
4fn main() {
5 const MAX_TURNS: usize = 1000;
6 let (mut elves, mut lookup) = read_from_stdin();
7 if let Some(n) = play(&mut elves, &mut lookup, MAX_TURNS) {
8 println!("{}", n+1);
9 } else {
10 panic!("Not enough turns ({}), try increasing MAX_TURNS", MAX_TURNS);
11 }
12}

Generated with cgit - Back to sebastiano.tronto.net