aoc

My solutions for the Advent of Code
git clone https://git.tronto.net/aoc
Download | Log | Files | Refs | README

b.rs (210B)


      1 mod common;
      2 use common::*;
      3 
      4 fn 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 }