上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 53 下一页
摘要: C - Roads in BerlandCrawling in process...Crawling failedTime Limit:2000MSMemory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice CodeForces 25C DescriptionThere are n cities numbered from 1 to n in Berland. Some of them are connected by two-way roads. Each road has its own leng 阅读全文
posted @ 2013-02-02 21:40 剑不飞 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 最近真的好不顺,不知为何最近好多题目开始似懂非懂,实际上就一水题。每次都得QAQ,真心好无奈。尤其今天NEFU第21场,太令我郁闷了,三道水,第一题,很庆幸读懂了,估计12分钟能出,用递归搜,结果在递归里面int dfs(int x,int ret,int dep){ int z,zz=9999999; go[x]=1; if(x==1){go[x]=0;return 0;} for(int i=1;i<=m;i++) { if(!dep&&i==1)continue; if(vis[x][i]&&!go[i]) { z=dfs(i,0,dep+1)+gr 阅读全文
posted @ 2013-01-31 22:20 剑不飞 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 0 or 1Time Limit: 6000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1659Accepted Submission(s): 418Problem DescriptionSolving problem is a interesting thing. Yifenfei like to slove different problem,because he think it is a way let him more intelligent. But as w 阅读全文
posted @ 2013-01-29 16:01 剑不飞 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Mondriaan's DreamTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 555Accepted Submission(s): 377Problem DescriptionSquares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 't 阅读全文
posted @ 2013-01-29 14:46 剑不飞 阅读(218) 评论(0) 推荐(0) 编辑
摘要: The PeanutsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 313Accepted Submission(s): 174Problem DescriptionMr. Robinson and his pet monkey Dodo love peanuts very much. One day while they were having a walk on a country road, Dodo found a sign by t 阅读全文
posted @ 2013-01-29 13:29 剑不飞 阅读(222) 评论(0) 推荐(0) 编辑
摘要: The Drunk JailerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 821Accepted Submission(s): 677Problem DescriptionA certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locke 阅读全文
posted @ 2013-01-29 12:23 剑不飞 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Function Run FunTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1475Accepted Submission(s): 752Problem DescriptionWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a 20 or b > 20 or c > 20, then w 阅读全文
posted @ 2013-01-29 08:48 剑不飞 阅读(157) 评论(0) 推荐(0) 编辑
摘要: MAX Average ProblemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4153Accepted Submission(s): 1052Problem DescriptionConsider a simple sequence which only contains positive integers as a1, a2 ... an, and a number k. Define ave(i,j) as the average 阅读全文
posted @ 2013-01-28 21:49 剑不飞 阅读(241) 评论(0) 推荐(0) 编辑
摘要: PearlsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 894Accepted Submission(s): 382Problem DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry with pearls in it. The Royal Pearl has i 阅读全文
posted @ 2013-01-28 18:27 剑不飞 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Fast FoodTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1403Accepted Submission(s): 609Problem DescriptionThe fastfood chain McBurger owns several restaurants along a highway. Recently, they have decided to build several depots along the highway, 阅读全文
posted @ 2013-01-28 10:16 剑不飞 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 53 下一页