摘要: 发现枚举+二分更好!我做得复杂了,竟然两个都是从左边开始枚举。找最大最小用ST算法吧。#include #include #include #include #include #define LL long longusing namespace std;const int MAX=100050;i... 阅读全文
posted @ 2015-09-09 23:33 chenjunjie1994 阅读(568) 评论(0) 推荐(0)
摘要: //枚举因子,查找和i最近的左右是i因子的点即可。#include #include #include #include #define LL long longusing namespace std;const int MAX=100010;const LL mod=1e9+7;int l_nex... 阅读全文
posted @ 2015-09-09 23:30 chenjunjie1994 阅读(216) 评论(0) 推荐(0)