package main import ( "fmt" "os" "strconv" "strings" "slices" ) func SplitByLines(bytes []byte) []string { return strings.Split(strings.Trim(string(bytes[:]), "\n"), "\n") } func Less(a, b int) bool { return ab } func P(f func (int, int) bool, a, b int) bool { return f(a, b) && Abs(a-b)<=3 } func Abs(x int) int { if x<0 { x = -x } return x } func Safe1(l []int, j, e int) bool { f := Less if l[j-1]>l[j] { f = More } for jl[1] { f = More } c := 0 j := 2 for j