04 2018 档案

摘要:cjj is fun with math problem. One day he found a Olympic Mathematics problem for primary school students. It is too difficult for cjj.... 阅读全文
posted @ 2018-04-19 21:14 _年少有为 阅读(192) 评论(0) 推荐(0)
摘要:看代码解释/*求逆元费马小定理a^(p-1)=1(mod p)故a^(p-2)=1/a(mod p)inv(a)(a关于p的逆元)=a^(p-2)*/#include#include#include#include#include#include#include#de... 阅读全文
posted @ 2018-04-16 21:46 _年少有为 阅读(316) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/612/D题目大意:给出n条线段,让你算这些线段重合次数大于等于k次的部分输入: 第一行:给出两个数n k 分别表示要输入的线段个数和所需的线段最少重叠次数接下来n... 阅读全文
posted @ 2018-04-11 18:54 _年少有为 阅读(314) 评论(0) 推荐(0)
摘要:lower_bound()返回这个有序序列中第一个大于等于value的位置upper_bound()返回这个有序序列中第一个大于vlaue的位置具体STL库好像用的二分查找举个例子代码#include#include#include#include#include#i... 阅读全文
posted @ 2018-04-10 11:40 _年少有为 阅读(177) 评论(0) 推荐(0)
摘要:先放下代码:时间2018-4-9-19-58 #include#include#include#include#include#include#include#define N 2010000#define INF 0x3f3f3f3f#define MOD 1000... 阅读全文
posted @ 2018-04-09 19:59 _年少有为 阅读(134) 评论(0) 推荐(0)
摘要:代码先补出来 #include#include#include#include#include#include#include#define INF 0x3f3f3f3f3f#define N 1100#define MOD 10007using namespace... 阅读全文
posted @ 2018-04-08 17:27 _年少有为 阅读(138) 评论(0) 推荐(0)
摘要:题目链接It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring p... 阅读全文
posted @ 2018-04-02 20:09 _年少有为 阅读(139) 评论(0) 推荐(0)