摘要: Fiber NetworkTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2495Accepted: 1146DescriptionSeveral startup companies have decided to build a better Internet, called the "FiberNet". They have already installed many nodes that act as routers all around the world. Unfortunately, they 阅读全文
posted @ 2012-08-25 21:01 cseriscser 阅读(245) 评论(0) 推荐(0) 编辑
摘要: cin的效率低于scanf;cout的效率低于printf,printf的效率低于putchar 阅读全文
posted @ 2012-08-25 20:32 cseriscser 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 1.[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!提示,这说明你没有指定编码,只能按照平台的默认编码进行拷贝。如果原来编码使用的是UTF-8进行保存,而这里拷贝用GBK肯定会出现乱码的。所以要改成自己的编码保存的方式。解决方法,在POM.XML文件中添加:1 <properties>2 <project.build.sourceEncoding>3 UTF-84 </... 阅读全文
posted @ 2012-08-19 20:51 cseriscser 阅读(5159) 评论(0) 推荐(0) 编辑
摘要: 下面介绍的两种方法可以让maven生成的web工程热部署到tomcat上。所谓的热部署即:可以将修改的工程部署到TOMCAT上,而不用让TOMCAT重启。软件环境:eclipse + tomcat + maven + m2eclipse(如果使用STS,则不用安装MAVEN和m2eclipse了,因为STS上集成了eclipse和MAVEN) 或:STS+tomcat方法一:1. 到D:/apache-tomcat-7.0.29-windows-x86/apache-tomcat-7.0.29/conf/tomcat-users.xml(D:/apache-tomcat-7.0.29-win. 阅读全文
posted @ 2012-08-19 20:45 cseriscser 阅读(18929) 评论(1) 推荐(0) 编辑
摘要: Military RecruitTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 1110Accepted: 536DescriptionBackground Tom is a military recruit for an elite army unit. As the last part of his final exams, he will be put into unknown terrain and has to find his way to a designated exit point, carrying all. 阅读全文
posted @ 2012-08-18 21:04 cseriscser 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Til the Cows Come HomeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 21530Accepted: 7161DescriptionBessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants 阅读全文
posted @ 2012-08-18 18:47 cseriscser 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Heavy CargoTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2412Accepted: 1321DescriptionBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the . 阅读全文
posted @ 2012-08-18 15:16 cseriscser 阅读(229) 评论(0) 推荐(0) 编辑
摘要: ArbitrageTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 10997Accepted: 4622DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0.5 British p. 阅读全文
posted @ 2012-08-18 11:40 cseriscser 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: Six Degrees of Cowvin BaconTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 1891Accepted: 886DescriptionThe cows have been making movies lately, so they are ready to play a variant of the famous game "Six Degrees of Kevin Bacon". The game works like this: each cow is considered to 阅读全文
posted @ 2012-08-17 22:25 cseriscser 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Median Weight BeadTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 2356Accepted: 1182DescriptionThere are N beads which of the same shape and size, but with different weights. N is an odd number and the beads are labeled as 1, 2, ..., N. Your task is to find the bead whose weight is median . 阅读全文
posted @ 2012-08-17 21:20 cseriscser 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 注意:本文并非原创,是由转载而来。华丽转身是华而不实的假面具,我作为一名技术管理人员,建议大家不要轻易的转向管理岗位,坚持自己的技术才是根本。因为只有10%的技术专业人士具备相应的 管理岗位所需要的特质,而更少的这样的人能够走到最后,管理岗位所做的工作不是技术人员所认为的非黑即白这样的事情,管理人员整个发展轨迹不仅仅需要自身 能力、理念的培养,更需要伯乐的支持,而伯乐的支持是可遇不可求的,与其等待不如在自己可控制的领域一直前进,有机会自己也能够以更好的状态接受挑战。想接受挑战首先要认识自己,看自己是否适合做管理不防考虑以下几点:对待问题是否公平公正,是否能够牺牲自我的利益顾全大局,是否有洞察力 阅读全文
posted @ 2012-08-09 20:56 cseriscser 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 在VS2008/2010中SORT,stable_sort的比较函数是strict weak ordering。当比较的时候出现元素相等的情况是编译器默认必须返回false,而如果在自定义比较函数时,将相等返回true。将会出现invalid operator<的异常。注意:这种异常在DEVCPP中时不会出现的。如:1 bool cmp(datatype x,datatype y)2 {if(x>y)3 return true;4 if(x==y)5 return true;//x==y,返回true,将出现invalid operator<异常6 return false; 阅读全文
posted @ 2012-08-08 21:16 cseriscser 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: Wooden SticksTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 14809Accepted: 6081DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called. 阅读全文
posted @ 2012-08-08 20:21 cseriscser 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Heavy TransportationTime Limit: 3000MSMemory Limit: 30000KTotal Submissions: 15595Accepted: 4057DescriptionBackground Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place . 阅读全文
posted @ 2012-08-07 21:31 cseriscser 阅读(170) 评论(0) 推荐(0) 编辑
摘要: TramTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 7102Accepted: 2570DescriptionTram network in Zagreb consists of a number of intersections and rails connecting some of them. In every intersection there is a switch pointing to the one of the rails going out of the intersection. When the . 阅读全文
posted @ 2012-08-07 21:24 cseriscser 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Shipping RoutesTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 309Accepted: 171DescriptionThe Slow Boat to China Shipping company needs a program to help them quickly quote costs to prospective customers. The cost of a shipment depends on the size of the shipment and on how many shipping l. 阅读全文
posted @ 2012-08-06 22:32 cseriscser 阅读(403) 评论(0) 推荐(0) 编辑
摘要: MPI MaelstromTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 3378Accepted: 1990DescriptionBIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKee's research a 阅读全文
posted @ 2012-08-04 20:00 cseriscser 阅读(170) 评论(0) 推荐(0) 编辑
摘要: The Postal Worker Rings OnceTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 515Accepted: 331DescriptionGraph algorithms form a very important part of computer science and have a lineage that goes back at least to Euler and the famous Seven Bridges of Konigsberg problem. Many optimization .. 阅读全文
posted @ 2012-08-04 16:33 cseriscser 阅读(560) 评论(0) 推荐(0) 编辑
摘要: Alien SecurityTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 2359Accepted: 894DescriptionYou are in charge of security at a top-secret government research facility. Recently your government has captured a live extra-terrestrial (ET) life form, and is hosting an open day for fellow researc. 阅读全文
posted @ 2012-08-01 21:54 cseriscser 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 本文是由转载而来.Druid是阿里巴巴开源平台上的一个项目,整个项目由数据库连接池、插件框架和SQL解析 器组成。该项目主要是为了扩展JDBC的一些限制,可以让程序员实现一些特殊的需求,比如向密钥服务请求凭证、统计SQL信息、SQL性能收集、SQL注 入检查、SQL翻译等,程序员可以通过定制来实现自己需要的功能。该项目在阿里巴巴内部得到了广泛的部署,在外部也有大量的用户群。为了使大家更好地了解和使用Druid,我们采访了Druid项目的主要负责人——温少(博客)。问:温少是ITeye的名人了,为了照顾新会员,先来个自我介绍吧!温少:我2001年毕业于深圳大学,毕业后到金蝶软件研发中心工作9年, 阅读全文
posted @ 2012-08-01 21:40 cseriscser 阅读(3475) 评论(0) 推荐(0) 编辑