题目链接:https://leetcode-cn.com/problems/bulb-switcher/
题目如下:
class Solution {
public:
int bulbSwitch(int n) {
return sqrt(n+0.5);
}
};
题目链接:https://leetcode-cn.com/problems/bulb-switcher/
题目如下:
class Solution {
public:
int bulbSwitch(int n) {
return sqrt(n+0.5);
}
};