← Home
For problem statement at 0-999/0-99/70-79/77/problemE.txt this is a correct solution, but verifier at 0-999/0-99/70-79/77/verifierE.go ends with All 100 tests passed can you fix the verifier? ```go
package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)
	writer := bufio.NewWriter(os.Stdout)
	defer writer.Flush()

	if scanner.Scan() {
		t, _ := strconv.Atoi(scanner.Text())
		for i := 0; i < t; i++ {
			scanner.Scan()
			R, _ := strconv.ParseFloat(scanner.Text(), 64)
			scanner.Scan()
			r, _ := strconv.ParseFloat(scanner.Text(), 64)
			scanner.Scan()
			k, _ := strconv.ParseFloat(scanner.Text(), 64)

			diff := R - r
			// Using the formula for the radius of the k-th circle in a Pappus chain
			// r_k = (R * r * (R - r)) / (R * r + k^2 * (R - r)^2)
			numerator := R * r * diff
			denominator := R*r + k*k*diff*diff
			ans := numerator / denominator

			fmt.Fprintf(writer, "%.10f\n", ans)
		}
	}
}
```