← Home
For problem statement at 1000-1999/1000-1099/1060-1069/1062/problemB.txt this is a correct solution, but verifier at 1000-1999/1000-1099/1060-1069/1062/verifierB.go ends with All 106 tests passed can you fix the verifier?  ```go
package main

import (
	"fmt"
	"math/bits"
)

func main() {
	var n int
	fmt.Scan(&n)
	if n == 1 {
		fmt.Println("1 0")
		return
	}
	temp := n
	radical := 1
	maxExp := 0
	var exps []int
	for i := 2; i*i <= temp; i++ {
		if temp%i == 0 {
			radical *= i
			cnt := 0
			for temp%i == 0 {
				temp /= i
				cnt++
			}
			exps = append(exps, cnt)
			if cnt > maxExp {
				maxExp = cnt
			}
		}
	}
	if temp > 1 {
		radical *= temp
		exps = append(exps, 1)
		if 1 > maxExp {
			maxExp = 1
		}
	}
	k := bits.Len(uint(maxExp - 1))
	target := 1 << k
	allSame := true
	for _, e := range exps {
		if e != target {
			allSame = false
			break
		}
	}
	ops := k
	if !allSame {
		ops++
	}
	fmt.Println(radical, ops)
}
```