数论
文章平均质量分 81
devYzhou
Be a man,do the right thing
展开
-
AUG13-The Number Of Solutions
Little Chief loves math. Most of all, he loves equations. He can solve any equation in the whole world. Recently he found one interesting and easy equationx1d+x2d+x3d ≡ m (mod N)Where x1, x2 and x原创 2013-08-06 21:17:33 · 1047 阅读 · 0 评论 -
hdu-4615 Partition
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=4651题目大意就是整数拆分数据特别大,不能用以前的递归所以。。。 不能百度 只能谷歌http://en.wikipedia.org/wiki/Partition_%28number_theory%29然后在里面找一个公式Leonhard Euler'spe原创 2013-08-07 10:05:02 · 1142 阅读 · 0 评论 -
hdu-4704 (a^b)%c
http://acm.hdu.edu.cn/showproblem.php?pid=4704求解(a^b)%c#include#include#include#include#define LL long long#define nnum 1000005#define nmax 31625int flag[nmax], prime[nmax];int plen;void原创 2013-08-24 12:44:30 · 1026 阅读 · 0 评论