← Home
For problem statement at 2000-2999/2000-2099/2040-2049/2043/problemA.txt this is a correct solution, but verifier at 2000-2999/2000-2099/2040-2049/2043/verifierA.go ends with empty input
exit status 1 can you fix the verifier? package main

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

func main() {
	in := bufio.NewReaderSize(os.Stdin, 1<<20)
	var t int
	fmt.Fscan(in, &t)

	var out bytes.Buffer
	for i := 0; i < t; i++ {
		var n uint64
		fmt.Fscan(in, &n)
		ans := uint64(1)
		for n > 3 {
			ans <<= 1
			n >>= 2
		}
		fmt.Fprintln(&out, ans)
	}

	fmt.Print(out.String())
}