package leetcode;

/**
 * https://leetcode.com/problems/bulb-switcher/
 */
public class Problem319 {
    public int bulbSwitch(int n) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem319 prob = new Problem319();
        System.out.println(prob.bulbSwitch(3)); // 1
    }
}

@@ -141,182 +141,43 @@
     
-// TODO%0A        return 0;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Problem319 prob = new Problem319();%0A        System.out.println(prob.bulbSwitch(3)); // 1
+return (int) Math.sqrt((double) n);
 %0A   

Solve problem 319