@[Otion](/user/843596) 可以不用枚举
by lwst_zxz @ 2023-06-15 10:40:18
@[Otion](/user/843596) 很容易发现(~~~~好像也不容易~~~~)最后亮的灯的编号都是完全平方数啊
by lwst_zxz @ 2023-06-15 10:43:03
```cpp
#include<cstdio>
int main(){
int n;
scanf("%d", &n);
for (int i = 1; i <= n * 1.0 / i; i++)
printf("%d ", i * i);
return 0;
}
```
by lwst_zxz @ 2023-06-15 10:44:06