摘要: 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 阅读(1465) 评论(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 阅读(1250) 评论(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 阅读(264) 评论(0) 推荐(0) 编辑