/* * 319. Bulb Switcher * 2016-7-6 by Mingyang * 呵呵 */ public int bulbSwitch(int n) { return (int)Math.sqrt(n); }