← Home
For problem statement at 1000-1999/1900-1999/1920-1929/1927/problemA.txt this is a correct solution, but verifier at 1000-1999/1900-1999/1920-1929/1927/verifierA.go ends with All 100 tests passed can you fix the verifier? ```go
package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	var t int
	fmt.Fscan(in, &t)

	for i := 0; i < t; i++ {
		var n int
		var s string
		fmt.Fscan(in, &n, &s)

		first := strings.Index(s, "B")
		last := strings.LastIndex(s, "B")

		fmt.Fprintln(out, last-first+1)
	}
}
```