aboutsummaryrefslogtreecommitdiff
path: root/2022/06/b.rs
diff options
context:
space:
mode:
Diffstat (limited to '2022/06/b.rs')
-rw-r--r--2022/06/b.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/2022/06/b.rs b/2022/06/b.rs
new file mode 100644
index 0000000..78d2703
--- /dev/null
+++ b/2022/06/b.rs
@@ -0,0 +1,9 @@
1mod common;
2use common::*;
3
4fn main() {
5 let mut line = String::new();
6 std::io::stdin().read_line(&mut line).unwrap();
7 let i = first_index_n_distinct(line.as_bytes(), 14) + 1;
8 println!("{i}");
9}

Generated with cgit - Back to sebastiano.tronto.net