题目:
题解:
java
class Solution {
public int bulbSwitch(int n) {
return (int) Math.sqrt(n + 0.5);
}
}
题目:
题解:
class Solution {
public int bulbSwitch(int n) {
return (int) Math.sqrt(n + 0.5);
}
}