摘要: 链接:here Can you answer these queries I SPOJ - GSS1 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define ls rt<<1 4 #define rs rt<<1|1 5 #define 阅读全文
posted @ 2017-10-05 16:18 yijiull 阅读(178) 评论(0) 推荐(0) 编辑
摘要: function HDU - 5608 题意:典型的莫比乌斯反演就不用说了。。。 公式不会推,看的题解=_= 链接 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define ll long long 4 const ll mod = 1e 阅读全文
posted @ 2017-10-05 15:28 yijiull 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 4 Values whose Sum is 0 UVA - 1152 题意:给n组4个数,问有多少种组合(每组选一个)使得四个数的和为零. 补个简单题...之前写的哈希表有问题一直没过就忘了,今天刚好看到~ 1 #include <bits/stdc++.h> 2 using namespace s 阅读全文
posted @ 2017-10-05 11:17 yijiull 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 狄利克雷卷积和莫比乌斯反演:链接 浅谈一类积性函数的前缀和: 链接 贾志鹏线性筛: 链接 读贾志鹏线性筛有感 (莫比乌斯函数的应用) 莫比乌斯函数 阅读全文
posted @ 2017-10-05 10:15 yijiull 阅读(156) 评论(0) 推荐(0) 编辑