← Home
For problem statement at 1000-1999/1800-1899/1850-1859/1850/problemC.txt this is a correct solution, but verifier at 1000-1999/1800-1899/1850-1859/1850/verifierC.go ends with All 120 tests passed can you fix the verifier? package main

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

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

	var t int
	fmt.Fscan(in, &t)
	for ; t > 0; t-- {
		word := make([]byte, 0, 8)
		for i := 0; i < 8; i++ {
			var s string
			fmt.Fscan(in, &s)
			for j := 0; j < 8; j++ {
				if s[j] != '.' {
					word = append(word, s[j])
				}
			}
		}
		fmt.Fprintln(out, string(word))
	}
}