← Home
For problem statement at 0-999/900-999/980-989/989/problemA.txt this is a correct solution, but verifier at 0-999/900-999/980-989/989/verifierA.go ends with All 100 tests passed can you fix the verifier? package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReader(os.Stdin)
	var s string
	fmt.Fscan(in, &s)

	for i := 0; i+2 < len(s); i++ {
		mask := 0
		for j := i; j < i+3; j++ {
			switch s[j] {
			case 'A':
				mask |= 1
			case 'B':
				mask |= 2
			case 'C':
				mask |= 4
			}
		}
		if mask == 7 {
			fmt.Println("Yes")
			return
		}
	}
	fmt.Println("No")
}