摘要: 试除法求约数 1 vector<int> get_divisors(int x) 2 { 3 vector<int> res; 4 for (int i = 1; i <= x / i; i ++ ) 5 if (x % i == 0) 6 { 7 res.push_back(i); 8 if (i 阅读全文
posted @ 2020-11-15 01:33 筱翼深凉 阅读(200) 评论(0) 推荐(0) 编辑