319. Bulb Switcher

    /*
     * 319. Bulb Switcher
     * 2016-7-6 by Mingyang
     * 呵呵
     */
    public int bulbSwitch(int n) {
        return (int)Math.sqrt(n);
    }
原文地址:https://www.cnblogs.com/zmyvszk/p/5648682.html