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