03 2011 档案
摘要:手头正在做一个项目,在项目中很多地方为了开发的快捷,往往我们总工程师就会要求我们尽量为一组功能相仿的模块写通用的代码,这样可以最大程度的减少工作量。虽然开始写的通用成都高的,可复用程度高的代码会很痛苦,几个算法的设计会让人抓狂!但是一旦完成了,对于我个人来说,那是很兴奋的,这种兴奋,就像当初在学校的时候完成一道理科题目一样,难以抑制。对于项目组来说,那也是一劳永逸的事情。最近碰到的是为一组向web service发送数据的需求。发送的数据符合xml规范。这样一来,对于服务器端来说,定义这样的数据的时候,自然会根据需求所定义的schema来生成服务器端得数据类型。其实说白了,就是一组xml到ja
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBFor 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3)=1, f(0, 3)=2, f(5, 10)=4.Now given 2 sets of non-negative integers A and B, for each integer b in B, you should fi
阅读全文
摘要:The Circumference of the Circle Time Limit: 1 Second Memory Limit: 32768 KB To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't?...
阅读全文
摘要:很久没有再做算法题了,做作算法题,就当是休闲娱乐了。下面是一道简单的题目,难题我也没有能力解,只能拿简单题开刀了。 Rounders Time Limit: 1 Second Memory Limit: 32768 KB Introduction For a given number, if greater than ten, round it to the nearest ten, then (...
阅读全文
摘要:很久很久以前,我问我的朋友:“现在有什么好书可以研究研究的啊?”“设计模式啊。”他不假思索的回答我。想想也是,设计模式确实是一本经典的书,于是乎我又开始了《设计模式》这本书的阅读过程。本人对于设计模...
阅读全文
浙公网安备 33010602011771号