- 浏览: 22961 次
- 性别:
- 来自: 杭州
最新评论
文章列表
递归(SRM144D2)
- 博客分类:
- 算法
Problem Statement You work for an electric company, and the power goes out in a rather large apartment complex with a lot of irate tenants. You isolate the problem to a network of sewers underneath the complex with a step-up transformer at every junction in the maze of ducts. Before the power can be ...
字符串与数字转换(续)
- 博客分类:
- 算法
(SRM 144 DIV2) 550分题:
Problem Statement
Let's say you have a binary string such as the following:
011100011
One way to encrypt this string is to add to each digit the sum of its adjacent digits. For example, the above string would become:
123210122
In particular, if P is the or ...
关于字符串与数字转换
- 博客分类:
- 算法
Problem Statement ***Note: Please keep programs under 7000 characters in length. Thank you
Class Name: SquareDigits Method Name: smallestResult Parameters: int Returns: int
Define the function S(x) as the sum of the squares of the digits of x. For example: S(3)=3*3=9 and S(230)=2*2+3*3+0*0=13.
D ...
topcoder practice1
- 博客分类:
- 算法
Problem Statement:
TopCoder has decided to automate the process of assigning problem difficulty
levels to problems. TopCoder developers have concluded that problem difficulty
is related only to the Average Word Length of Words in the problem statement:
If the Average Word Length is less ...
(zz)topcoder指南
- 博客分类:
- 算法
开博第一篇,转个topcoder指南,算法这东西还是要多练习,争取一星期练一题回来写体会
1.基本规则2.运行环境3.注册与登陆4.界面简介5.练习6.比赛7.注意事项8.代码编写
TopCoder(以下简写tc) URL: http://www.topcoder.com
1.基本规则 tc的 ...