摘要: void get_div() //筛因子{ for(int i=2; i<maxn; i++) for(int j=i; j<maxn; j+=i) dx[j].push_back(i);}View Code 阅读全文
posted @ 2013-11-17 21:06 等待最好的两个人 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/264/B代码:#include#include#include#includeusing namespace std;const int maxn = 105000;int dp[maxn];vector dx[maxn];void get_div() //筛因子{ for(int i=2; i>n) { memset(dp,0,sizeof(dp)); for(int i=1; i>a; int Max = 1; ... 阅读全文
posted @ 2013-11-17 21:05 等待最好的两个人 阅读(204) 评论(0) 推荐(0) 编辑