摘要: 1 typedef long long ll; 2 int a[20]; 3 ll dp[20][state];//不同题目状态不同 4 ll dfs(int pos,/*state变量*/,bool lead/*前导零*/,bool limit/*数位上界变量*/)//不是每个题都要判断前导零 5 { 6 //递归边界,既然是按位枚举,最低位是0,那么p... 阅读全文
posted @ 2017-10-15 21:07 weeping 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 struct Point 10 { 11 bool flag; 12 double x; 13 double... 阅读全文
posted @ 2017-10-15 19:59 weeping 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 没时间复习这个了,暂时用来当模板,以后再来写下自己的模板 阅读全文
posted @ 2017-10-15 19:53 weeping 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/872/problem/D 题目: D. Something with XOR Queries time limit per test 2 seconds memory limit per test 256 megabytes inp 阅读全文
posted @ 2017-10-15 19:47 weeping 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 地址: 题目: C. Maximum splitting time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are giv 阅读全文
posted @ 2017-10-15 19:43 weeping 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1 struct Point{double x,y;}; 2 struct Circle{Point c;double r;}; 3 double dist(Point a,Point b){ 4 return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); 5 } 6 Circle ... 阅读全文
posted @ 2017-10-15 15:22 weeping 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 搬运别人的 https://vjudge.net/problem/SPOJ-CIRUT 阅读全文
posted @ 2017-10-15 14:52 weeping 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 地址:http://www.lydsy.com/JudgeOnline/problem.php?id=4561 题目: 4561: [JLoi2016]圆的异或并 Description 在平面直角坐标系中给定N个圆。已知这些圆两两没有交点,即两圆的关系只存在相离和包含。求这些圆的异或面 积并。异或 阅读全文
posted @ 2017-10-15 11:46 weeping 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=3511 题目: Prison Break Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Oth 阅读全文
posted @ 2017-10-15 11:25 weeping 阅读(193) 评论(0) 推荐(0) 编辑