
数论
文章平均质量分 81
rgtjf
这个作者很懒,什么都没留下…
展开
-
EOJ 1094 Prime Judge
http://acm.cs.ecnu.edu.cn/problem.php?problemid=1094题意:判断素数。TLE #include #include using namespace std;const int maxn = 1000005;int a[maxn];vector v;void init(){ a[0] = 1; a[1] = 1原创 2013-06-22 22:06:36 · 710 阅读 · 0 评论 -
EOJ 1835 梦乡
http://acm.cs.ecnu.edu.cn/problem.php?problemid=1835连续拿掉n位数的前任意位都是质数的n位数#include#include#include#include#includeusing namespace std;//typedef long long __int64;const int s[]={2,7,61};/*c原创 2013-06-23 16:52:27 · 512 阅读 · 0 评论