aboutsummaryrefslogtreecommitdiff
path: root/2022/06/b.rs
blob: 78d27030723c4544ec66fd2f0c8e02664aad79b2 (plain)
1
2
3
4
5
6
7
8
9
mod common;
use common::*;

fn main() {
    let mut line = String::new();
    std::io::stdin().read_line(&mut line).unwrap();
    let i = first_index_n_distinct(line.as_bytes(), 14) + 1;
    println!("{i}");
}

Generated with cgit - Back to sebastiano.tronto.net