摘要: Shredding CompanyDescriptionYou have just been put in charge of developing a new shredder for the Shredding Company Although a "normal" shredder would... 阅读全文
posted @ 2014-10-29 19:30 Enumz 阅读(580) 评论(0) 推荐(0) 编辑
摘要: PalindromeDescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You ar... 阅读全文
posted @ 2014-10-29 19:21 Enumz 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Spell checkerDescriptionYou, as a member of a development team for a new spell checking program, are to write a module that will check the correctness... 阅读全文
posted @ 2014-10-29 19:03 Enumz 阅读(210) 评论(0) 推荐(0) 编辑
摘要: BestCoder SequenceProblem DescriptionMr Potato is a coder.Mr Potato is the BestCoder.One night, an amazing sequence appeared in his dream. Length of t... 阅读全文
posted @ 2014-08-04 10:44 Enumz 阅读(515) 评论(6) 推荐(2) 编辑
摘要: Task scheduleDescription有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之外的任务请求,请计算何时这个任务才能被执行。机器总是按照工作表执行,当机器空闲... 阅读全文
posted @ 2014-08-04 10:29 Enumz 阅读(223) 评论(0) 推荐(1) 编辑
摘要: AreaDescriptionBeing well known for its highly innovative products, Merck would definitely be a good target for industrial espionage. To protect its b... 阅读全文
posted @ 2014-08-02 09:51 Enumz 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 一 几何公式三角形: 1. 半周长 P=(a+b+c)/2 2. 面积 S=aHa/2=absin(C)/2=sqrt(P(P-a)(P-b)(P-c)) 3. 中线 Ma=sqrt(2(b^2+c^2)-a^2)/2=sqrt(b^2+c^2+2bccos(A))/2 4. 角平分线 Ta... 阅读全文
posted @ 2014-08-02 09:28 Enumz 阅读(416) 评论(0) 推荐(1) 编辑
摘要: 1.概念 生成函数即母函数,是组合数学中尤其是计数方面的一个重要理论和工具。生成函数有普通型生成函数和指数型生成函数两种,其中普通型用的比较多。形式上说,普通型生成函数用于解决多重集的组合问题,而指数型母函数用于解决多重集的排列问题。母函数还可以解决递归数列的通项问题(例如使用母函数解决斐波那契数... 阅读全文
posted @ 2014-07-31 08:12 Enumz 阅读(1287) 评论(3) 推荐(3) 编辑
摘要: 算法总结之欧拉函数&中国剩余定理1.欧拉函数 概念:在数论,对正整数n,欧拉函数是少于或等于n的数中与n互质的数的数目。 通式:φ(x)=x(1-1/p1)(1-1/p2)(1-1/p3)(1-1/p4)…..(1-1/pn) 其中p1, p2……pn为x的所有质因数,x是不为0的整数 ... 阅读全文
posted @ 2014-07-30 17:37 Enumz 阅读(2095) 评论(0) 推荐(3) 编辑
摘要: BiorhythmsDescription人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不... 阅读全文
posted @ 2014-07-30 16:42 Enumz 阅读(257) 评论(0) 推荐(0) 编辑