← Home
For problem statement at 0-999/0-99/80-89/82/problemA.txt this is a correct solution, but verifier at 0-999/0-99/80-89/82/verifierA.go ends with All tests passed can you fix the verifier? package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scan(&n)

	c := 1
	for n > 5*c {
		n -= 5 * c
		c *= 2
	}

	names := []string{"Sheldon", "Leonard", "Penny", "Rajesh", "Howard"}
	fmt.Println(names[(n-1)/c])
}