1 2 3 4 5 6 7 8 // @Title: 灯泡开关 (Bulb Switcher) // @Author: 15816537946@163.com // @Date: 2021-11-15 08:43:28 // @Runtime: 0 ms // @Memory: 1.9 MB func bulbSwitch(n int) int { return int(math.Sqrt(float64(n))) }