上一页 1 ··· 4 5 6 7 8
摘要: A. Win or Freeze time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You can't possibly imag 阅读全文
posted @ 2018-03-10 16:31 cglong 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 题意转载自https://www.cnblogs.com/blumia/p/poj3279.html 题目属性:DFS相关题目:poj3276题目原文:【desc】Farmer John knows that an intellectually satisfied cow is a happy co 阅读全文
posted @ 2018-03-10 11:32 cglong 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题意太麻烦就偷懒转载他人的题意。。。。。 题意转载自http://blog.csdn.net/acm_cxlove/article/details/7854526 by cxlove 题目:给出p1+p2个人,其中p1个是好人,p2个是坏人。然后有一些关系 ,a说b是好人(坏人).其中没有矛盾的,判 阅读全文
posted @ 2018-03-08 21:03 cglong 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题意:题目大意:有N个点,给出从a点到b点的距离,当然a和b是互相可以抵达的,问从1到n的最短距离 poj2387 Description Bessie is out in the field and wants to get back to the barn to get as much slee 阅读全文
posted @ 2018-02-28 17:08 cglong 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 题意:一群牛分别从1~n号农场赶往x号农场参加聚会,农场与农场之间的路时单向的,在n个农场之间有m条路,给出 a ,b , t表示从a号农场到b号农场需要t时间。 每头牛都会选择最短的路,问来回路上(i→x+x→i)花费时间最长的牛花费的时间是多少? 题解:一眼看过去很简单,先计算x农场到其他农场用 阅读全文
posted @ 2018-02-28 11:01 cglong 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include<queue>#define INF 0x3f3f3f3fusing namespace std;//hdu2612,Y,M不能走 int s[210][210],lg[210][210],lg1[210][210 阅读全文
posted @ 2018-01-30 13:58 cglong 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>//https://vjudge.net/contest/208065#problem/I//你可以用k块木板修理天花版,求最长木板的最小值。//二分求解 //二分:木板的长度为某个值时需要多少木板。 long long s[100050];long long n, 阅读全文
posted @ 2018-01-25 14:57 cglong 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8