← Home
For problem statement at 1000-1999/1800-1899/1880-1889/1888/problemC.txt this is a correct solution, but verifier at 1000-1999/1800-1899/1880-1889/1888/verifierC.go ends with case 1 failed: expected otdiqk got otdiqk
1

exit status 1 can you fix the verifier? package main

import (
	"bufio"
	"fmt"
	"io"
	"os"
	"strings"
)

func main() {
	b, _ := io.ReadAll(bufio.NewReader(os.Stdin))
	s := strings.TrimRight(string(b), "\r\n")
	r := []rune(s)
	for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
		r[i], r[j] = r[j], r[i]
	}
	fmt.Println(string(r))
}