首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
wy28专题
牛客网 -- WY28 跳石板
题目链接: 跳石板_牛客题霸_牛客网 (nowcoder.com) 解题步骤: 参考代码: void get_approximate(vector<int>& v,int n){//求约数,从2到sqrt(n)即可,原因看图解//这里一定要等于sqrt(n),例如16,4也是约数for(int i=2;i<=sqrt(n);i++){if(n%i==0){v.push_back(i
阅读更多...