package main import ( "fmt" ) func main() { var s string fmt.Scan(&s) fmt.Println(test3(s)) } func test3(s string) int { var hash = make(map[byte]int) var ans int var left, right = 0, 0 for right = range s { for len(hash) > 2 { hash[s[left]]-- if hash[s[left]] <= 0 { delete(hash,...