← Home
For problem statement at 0-999/500-599/530-539/537/problemA.txt this is a correct solution, but verifier at 0-999/500-599/530-539/537/verifierA.go ends with All tests passed can you fix the verifier? package main

import (
	"fmt"
)

func main() {
	var s string
	fmt.Scan(&s)
	t := "CODEFORCES"
	if len(s) >= 10 {
		for i := 0; i <= 10; i++ {
			if s[:i] == t[:i] && s[len(s)-(10-i):] == t[i:] {
				fmt.Println("YES")
				return
			}
		}
	}
	fmt.Println("NO")
}