上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页
摘要: 湫湫系列故事——植树节Time Limit: 1000/500 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 694Accepted Submission(s): 409Problem Description 今天是一年一度的植树节,腾讯幼儿园要求每个老师在班里选出几个小朋友一起去野外种植小树苗,根据学校的整体安排,湫湫老师的班里要选出3个小朋友。已知湫湫的班里共有n个孩子,每个孩子有Bi个朋友(i从1到n),且朋友关系是相互的,如果a小朋友和b小朋友是朋友,那么b小朋友和a小朋友也. 阅读全文
posted @ 2013-05-15 17:05 Jack Ge 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 吉哥系列故事——临时工计划Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1882Accepted Submission(s): 695Problem Description 俗话说一分钱难倒英雄汉,高中几年下来,吉哥已经深深明白了这个道理,因此,新年开始存储一年的个人资金已经成了习惯,不过自从大学之后他不好意思再向大人要压岁钱了,只能把唯一的希望放到自己身上。可是由于时间段的特殊性和自己能力的因素,只能找到些零零碎碎的工作,吉哥想知道怎么安. 阅读全文
posted @ 2013-05-15 16:53 Jack Ge 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 小明系列故事——买年货Time Limit: 5000/2000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1479Accepted Submission(s): 636Problem Description 春节将至,小明要去超市购置年货,于是小明去了自己经常去的都尚超市。 刚到超市,小明就发现超市门口聚集一堆人。用白云女士的话说就是:“那家伙,那场面,真是人山人海,锣鼓喧天,鞭炮齐呤,红旗招展。那可真是相当的壮观啊!”。好奇的小明走过去,奋力挤过人群,发现超市门口贴了一张通.. 阅读全文
posted @ 2013-05-15 16:29 Jack Ge 阅读(382) 评论(0) 推荐(0) 编辑
摘要: HDU 3001 travelling:http://acm.hdu.edu.cn/showproblem.php?pid=3001注意题目叙述:“But Mr Acmer gets bored so easily that he doesn't want to visit a city more than twice!”, 题目大意:加限制的最小生成树,限制条件:每个节点最多只能到达两次, 用三进制(想想二进制表示的意思,可对比理解)#include<iostream>#include<cstdio>#include<cstring>#includ 阅读全文
posted @ 2013-05-14 17:01 Jack Ge 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 转自(http://coolshell.cn/articles/4990.html)月光博客6月12日发表了《写给新手程序员的一封信》,翻译自《An open letter to those who want to start programming》,我的朋友(他在本站的id是Mailper)告诉我,他希望在酷壳上看到一篇更具操作性的文章。因为他也是喜欢编程和技术的家伙,于是,我让他把他的一些学习Python和Web编程的一些点滴总结一下。于是他给我发来了一些他的心得和经历,我在把他的心得做了不多的增改,并根据我的经历增加了“进阶”一节。这是一篇由新手和我这个老家伙根据我们的经历完成的文章。 阅读全文
posted @ 2013-05-14 14:25 Jack Ge 阅读(319) 评论(0) 推荐(1) 编辑
摘要: The Bottom of a GraphTime Limit:3000MSMemory Limit:65536KTotal Submissions:7514Accepted:3083DescriptionWe will use the following (standard) definitions from graph theory. LetVbe a nonempty and finite set, its elements being called vertices (or nodes). LetEbe a subset of the Cartesian productV×V 阅读全文
posted @ 2013-05-14 12:08 Jack Ge 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Frogs' NeighborhoodTime Limit:5000MSMemory Limit:10000KTotal Submissions:5819Accepted:2498Special JudgeDescription未名湖附近共有N个大小湖泊L1,L2, ...,Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤i≤N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻居数目x1,x2, ...,xn,请你给出每两个湖泊之间的相连关系。Input第一行是测试数据的组数T(0 ≤T≤ 20)。每组数据包括两行,第一行是整数N(2 阅读全文
posted @ 2013-05-13 23:17 Jack Ge 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 当我配置完Java环境变量后,使用java-version时,发现出现了以下错误然后经过查找资料找到了解决方法,可是原因不明,详见:http://blog.csdn.net/wzju64676266/article/details/5288218出现error:could not open '...jvm.cfg'大多是安装jdk的时候在注册表里注册过,在网上看到很多关于error:could not open '...jvm.cfg'的问题的解决方法,但有些无效,有些比较复杂,最简单的一招是删除"c:/windows/java.exe",w 阅读全文
posted @ 2013-05-13 18:54 Jack Ge 阅读(1464) 评论(0) 推荐(0) 编辑
摘要: Slim SpanTime Limit:5000MSMemory Limit:65536KTotal Submissions:5362Accepted:2813DescriptionGiven an undirected weighted graphG, you should find one of spanning trees specified as follows.The graphGis an ordered pair (V,E), whereVis a set of vertices {v1,v2, …,vn} andEis a set of undirected edges {e1 阅读全文
posted @ 2013-05-13 15:01 Jack Ge 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: Command NetworkTime Limit:1000MSMemory Limit:131072KTotal Submissions:10136Accepted:2946DescriptionAfter a long lasting war on words, a war on arms finally breaks out between littleken’s and KnuthOcean’s kingdoms. A sudden and violent assault by KnuthOcean’s force has rendered a total failure of lit 阅读全文
posted @ 2013-05-13 14:41 Jack Ge 阅读(257) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页