← Home
For problem statement at 0-999/800-899/860-869/866/problemC.txt this is a correct solution, but verifier at 0-999/800-899/860-869/866/verifierC.go ends with All 100 tests passed can you fix the verifier? package main

import "fmt"

func main() {
	var s string
	fmt.Scan(&s)
	for i := 0; i < len(s)/2; i++ {
		if s[i] != s[len(s)-1-i] {
			fmt.Println("NO")
			return
		}
	}
	fmt.Println("YES")
}