package main import ( "os" "github.com/01-edu/z01" ) func solve(str string) bool { arr := make([]int, 26) for i := 0; i < len(str); i++ { arr[str[i]-'a']++ } for i := 0; i < 26; i++ { for j := i + 1; j < 26; j++ { if arr[i] == arr[j] && arr[i] != 0 { return false } } } return true } func print(str string) { for _, v := range str { z01.PrintRune(v) } } func main() { args := os.Args[1:] if len(args) != 1 { z01.PrintRune('\n') return } result := solve(args[0]) if result { print("true\n") } else { print("false\n") } }