11 2015 档案

摘要:注意是正的偶数。。不包括零还有n=2的时候应该横着放#include #include using namespace std;void dfs(int n){ if(n == 1){ printf("1 1\n"); return; } else if... 阅读全文
posted @ 2015-11-16 21:15 Painting、时光 阅读(275) 评论(0) 推荐(0) 编辑
摘要:两次二分,第一次取得最小值,第二次往右二分看是否能到更右边注意超出部分land部分要去掉#include #include using namespace std;typedef long long ll;struct edge{ int x, y, w, h;}a[10010];bool c... 阅读全文
posted @ 2015-11-16 21:13 Painting、时光 阅读(155) 评论(0) 推荐(0) 编辑
摘要:struct P{ int x; bool operator a.x;//从小到大 }}; priority_queue q; 阅读全文
posted @ 2015-11-13 13:51 Painting、时光 阅读(262) 评论(0) 推荐(0) 编辑
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5037贪心,一个月没做题了,这道题卡了半天0 0~只要考虑清楚走两个时,为了保证最优,使得距离要是L+1,如果小于这个值,会导致能直接走到这里,就不是最优了题目要求最差情况下青蛙走的最佳情况,所以每次开始都使他只走... 阅读全文
posted @ 2015-11-10 19:48 Painting、时光 阅读(234) 评论(0) 推荐(0) 编辑
摘要:B. Pasha and Phonetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha has recently bought a new... 阅读全文
posted @ 2015-11-09 16:10 Painting、时光 阅读(275) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示