随笔分类 - 数据结构——trie树
摘要:小于等于x且与x互素的数的和=phi(x)*x/2,(一定有phi(x)对数,可以找到一个t,和与其对应的一个x-t) 所以 f[i]=i, 1 #include <cstdio> 2 3 #define LL long long 4 inline void read(int &x) 5 { 6 x
阅读全文
摘要:https://www.luogu.org/problem/show?pid=2580 题目背景 XS中学化学竞赛组教练是一个酷爱炉石的人。 他会一边搓炉石一边点名以至于有一天他连续点到了某个同学两次,然后正好被路过的校长发现了然后就是一顿欧拉欧拉欧拉(详情请见已结束比赛CON900)。 题目描述
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1075 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Total Submission(s):
阅读全文
摘要:http://codevs.cn/problem/4189/ 时间限制: 1 s 空间限制: 256000 KB 题目等级 : 大师 Master 题解 查看运行结果 http://codevs.cn/problem/4189/ 时间限制: 1 s 空间限制: 256000 KB 题目等级 : 大师
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1251 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 4
阅读全文

浙公网安备 33010602011771号