2017年8月15日

bzoj2005 能量采集 莫比乌斯或者普通容斥

摘要: /** 题目:bzoj2005 能量采集 链接:https://vjudge.net/contest/178455#problem/F 题意:栋栋有一块长方形的地,他在地上种了一种能量植物,这种植物可以采集太阳光的能量。在这些植物采集能量后, 栋栋再使用一个能量汇集机器把这些植物采集到的能量汇集到一起。 栋栋的植物种得非常整齐,一共有n列,每列 有m棵,植物的横竖间距都一样,因此对于每一棵植物... 阅读全文

posted @ 2017-08-15 10:19 hnust_accqx 阅读(143) 评论(0) 推荐(0) 编辑

GCD 莫比乌斯反演 给定整数N,求1<=x,y<=N且Gcd(x,y)为素数的 数对(x,y)有多少对.

摘要: /** 题目:GCD 链接:https://vjudge.net/contest/178455#problem/E 题意:给定整数N,求1 #include #include #include #include #include #include using namespace std; typedef long long LL; #define ms(x,y) memset(x,y... 阅读全文

posted @ 2017-08-15 09:13 hnust_accqx 阅读(810) 评论(0) 推荐(0) 编辑

导航