For problem statement at 0-999/600-699/660-669/665/problemC.txt this is a correct solution, but verifier at 0-999/600-699/660-669/665/verifierC.go ends with All tests passed can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
)
func main() {
in := bufio.NewReaderSize(os.Stdin, 1<<20)
var s string
fmt.Fscan(in, &s)
a := []byte(s)
n := len(a)
for i := 1; i < n; i++ {
if a[i] == a[i-1] {
for c := byte('a'); c <= 'z'; c++ {
if c != a[i-1] && (i+1 == n || c != a[i+1]) {
a[i] = c
break
}
}
}
}
out := bufio.NewWriterSize(os.Stdout, 1<<20)
out.Write(a)
out.Flush()
}