上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 89 下一页
摘要: Question:had known a,b,c;ask min x;to made a^x=b(mod c);think:make m=ceil(sqrt(c));make x=i*m-j;so a^(i*m-j)=b(mod c)so a^(i*m)/a^j=b(mod c)so a^(i*m) 阅读全文
posted @ 2017-05-19 19:19 ioioioioioio 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 const int N=1000; 7 8 int a[N]; 9 int sum[N]; 10 int belong[N]; 11 int size[N] 12 int add[N]; 13 14 15 int K_ask(int l,int r) ... 阅读全文
posted @ 2017-05-19 15:43 ioioioioioio 阅读(166) 评论(0) 推荐(0) 编辑
摘要: bz http://desk.fd.zol-img.com.cn/t_s1600x900c5/g4/M09/0C/09/Cg-4y1T2gkKINoA-AAEYjLOXX6oAAWA2QL3tsEAARik815.jpghttp://desk.fd.zol-img.com.cn/t_s1600x90 阅读全文
posted @ 2017-05-18 21:41 ioioioioioio 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 题目描述 对于给定的一个长度为N的正整数数列A[i],现要将其分成连续的若干段,并且每段和不超过M(可以等于M),问最少能将其分成多少段使得满足要求。 输入输出格式 输入格式: 输入文件divide_a.in的第1行包含两个正整数N,M,表示了数列A[i]的长度与每段和的最大值,第2行包含N个空格隔 阅读全文
posted @ 2017-05-18 21:34 ioioioioioio 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目描述 火车从始发站(称为第1站)开出,在始发站上车的人数为a,然后到达第2站,在第2站有人上、下车,但上、下车的人数相同,因此在第2站开出时(即在到达第3站之前)车上的人数保持为a人。从第3站起(包括第3站)上、下车的人数有一定规律:上车的人数都是前两站上车人数之和,而下车人数等于上一站上车人数 阅读全文
posted @ 2017-05-18 21:02 ioioioioioio 阅读(263) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 89 下一页