上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 地址:http://codeforces.com/gym/101174/attachments 题目:pdf,略 思路: 把每个人的(x1,x2)抽象成点(xi,yi). 当1号比i号排名高时有==>a(x1-xi)+b(y1-yi)>=0 把(x1-xi,y1-yi)看着向量,(a,b)看做向量。 阅读全文
posted @ 2017-07-19 21:08 weeping 阅读(533) 评论(1) 推荐(1) 编辑
摘要: 地址:http://poj.openjudge.cn/practice/C17K/ 题目: C17K:Lying Island C17K:Lying Island 查看 提交 统计 提问 查看 提交 统计 提问 总时间限制: 2000ms 内存限制: 262144kB描述 There are N p 阅读全文
posted @ 2017-07-18 23:51 weeping 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 1 int n,dg[K],topo[K]; 2 vectormp[K]; 3 int topo_sort(void) 4 { 5 queueq; 6 for(int i=1;i1) res=0; 12 int x=q.front();q.pop(); 13 topo[cnt++]=x; 14 for(int i=0;i... 阅读全文
posted @ 2017-06-10 14:36 weeping 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.uestc.edu.cn/#/problem/show/1638 题目: 红藕香残玉簟秋,轻解罗裳,独上兰舟。 红藕香残玉簟秋,轻解罗裳,独上兰舟。 Time Limit: 4000/2000MS (Java/Others) Memory Limit: 65535/655 阅读全文
posted @ 2017-06-09 19:25 weeping 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 地址:http://poj.org/problem?id=3159 题目: Candies Time Limit: 1500MS Memory Limit: 131072K Total Submissions: 31463 Accepted: 8782 Description During the 阅读全文
posted @ 2017-06-09 19:19 weeping 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 地址:http://poj.org/problem?id=1364 题目: King Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 13466 Accepted: 4793 Description Once, in one ki 阅读全文
posted @ 2017-06-09 19:12 weeping 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/811/problem/D 题目: D. Vladik and Favorite Game time limit per test 2 seconds memory limit per test 256 megabytes input 阅读全文
posted @ 2017-05-31 15:09 weeping 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/811/problem/C 题目: C. Vladik and Memorable Trip time limit per test 2 seconds memory limit per test 256 megabytes inpu 阅读全文
posted @ 2017-05-31 15:05 weeping 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/811/problem/B 题目: B. Vladik and Complicated Book time limit per test 2 seconds memory limit per test 256 megabytes in 阅读全文
posted @ 2017-05-31 14:57 weeping 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4417 题目: Super Mario Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tota 阅读全文
posted @ 2017-05-31 14:45 weeping 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4348 题目: To the moon Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Tota 阅读全文
posted @ 2017-05-31 14:41 weeping 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 地址:http://www.spoj.com/problems/COT/en/ 题目: COT - Count on a tree #tree #tree You are given a tree with N nodes.The tree nodes are numbered from 1 to  阅读全文
posted @ 2017-05-31 14:30 weeping 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 using namespace std; 4 5 #define MP make_pair 6 #define PB push_back 7 typedef long long LL; 8 typedef pair PII; 9 const double eps=1e-8; 10 const double pi=acos(-1.0); 11 ... 阅读全文
posted @ 2017-05-25 23:56 weeping 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4812 题目: D Tree Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/102400 K (Java/Others)Total 阅读全文
posted @ 2017-05-25 19:01 weeping 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #pragma comment(linker,"/STACK:102400000,102400000") 6 using namespace std; 7 8 #define MP make_pair 9 #define PB push_back 10 typedef long... 阅读全文
posted @ 2017-05-18 19:55 weeping 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.uestc.edu.cn/#/problem/show/1588 题目:复制过来发现有问题,自己去cdoj看吧 思路: 1.先进行多次spfa跑出所有人之间的相互到达所需要的步数。 2.知道所有人之间的距离关系后,就是个从初始点出发泡q个妹子所需要的最少花费问题。 这时你 阅读全文
posted @ 2017-05-17 22:34 weeping 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.uestc.edu.cn/#/problem/show/1587 题目: 失恋772002天 失恋772002天 Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) 阅读全文
posted @ 2017-05-17 22:23 weeping 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.uestc.edu.cn/#/problem/show/1580 题目: 简单图论问题 简单图论问题 Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) Submi 阅读全文
posted @ 2017-05-17 22:19 weeping 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=3966 题目: Aragorn's Story Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/ 阅读全文
posted @ 2017-05-17 22:12 weeping 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/problemset/problem/165/D 题目: D. Beard Graph time limit per test 4 seconds memory limit per test 256 megabytes input standard 阅读全文
posted @ 2017-05-17 22:05 weeping 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页