aboutsummaryrefslogtreecommitdiff
path: root/2022/06/a.rs
blob: 996f9a5194d5e902d2c1fc01259456f7b797852f (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(), 4) + 1;
    println!("{i}");
}

Generated with cgit - Back to sebastiano.tronto.net