摘要: 1 /* 2 CF55C. Pie or die 3 http://codeforces.com/problemset/problem/55/C 4 博弈论 乱搞 5 获胜条件是存在一个棋子到边界的值小于5 6 */ 7 #include 8 int main() 9 { 10 int n,m,k; 11 scanf("%d%d%d",&n,&m,&... 阅读全文
posted @ 2017-03-27 16:39 BBBob 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 CF15C. Industrial Nim 3 http://codeforces.com/problemset/problem/15/C 4 数论 博弈论 尼姆博弈 5 6 典型的尼姆博弈,答案就是所有数的异或值 7 然而在1e16的数据范围下直接异或肯定会T 8 考虑以一个能被4整除的数开始的连续4n个数的异或和为0 9 所以只需找到其余的值,... 阅读全文
posted @ 2017-03-27 16:26 BBBob 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 POJ2389 Bull Math 3 http://poj.org/problem?id=2389 4 高精度乘法 5 * 6 */ 7 #include 8 #include 9 #include 10 using namespace std; 11 const int Nmax=1000; 12 struct BigI... 阅读全文
posted @ 2017-03-27 14:54 BBBob 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU1002 A + B Problem II 3 http://acm.hdu.edu.cn/showproblem.php?pid=1002 4 高精度加法 5 * 6 */ 7 #include 8 #include 9 #include 10 using namespace std; 11 const int Nma... 阅读全文
posted @ 2017-03-27 14:44 BBBob 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU5514 Frogs 3 http://acm.hdu.edu.cn/showproblem.php?pid=5514 4 容斥原理 5 * 6 * 7 */ 8 #include 9 #include 10 #include 11 //#define test 12 using namespace std; 13 const long l... 阅读全文
posted @ 2017-03-27 00:10 BBBob 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU5130 Signal Interference 3 http://acm.hdu.edu.cn/showproblem.php?pid=5130 4 计算几何 圆与多边形面积交 5 * 6 */ 7 8 9 #include 10 #include 11 #include 12 using namespace s... 阅读全文
posted @ 2017-03-27 00:08 BBBob 阅读(330) 评论(0) 推荐(0) 编辑