題目: 方法:
第i輪:會把編號是i的倍數的燈泡切換成ON或OFF
解答:
class Solution { public: int bulbSwitch(int n) { return sqrt(n); } };