题目描述:
小明很喜欢数学,有一天他在做数学作业时,要求计算出9~16的和,他马上就写出了正确答案是100。但是他并不满足于此,他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列?
Good Luck!
输入:
输入有多...
分类:
其他好文 时间:
2014-08-14 16:54:08
阅读次数:
245
Descriptiontwo hundred silver dollars from the loser.""Being the most powerful man in the country,the king has so nice horses that in each class his h...
分类:
其他好文 时间:
2014-08-13 12:52:16
阅读次数:
204
The final classified generally as Honma Beres place in Japan EMPLOYEES bags for sale but ?? I love the ability to jump in and take the set. For someon...
分类:
其他好文 时间:
2014-08-13 12:44:06
阅读次数:
217
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con...
分类:
其他好文 时间:
2014-08-13 12:38:26
阅读次数:
225
1.dead beat 是俚语,是exhausted to the point of being dead 的省略语。Beat是beaten(精疲力尽或精神沮丧)的古体词;而dead是死的,它是death(死亡)苏格兰方言。因此,dead beat就是指“精疲力尽的人”,还可以说为“赖账的人”或“手...
分类:
其他好文 时间:
2014-08-13 12:37:26
阅读次数:
217
法一:
首先我们可以想到在面对3的时候是必败局,谁面对3时无论拿多少都会败 !
那么就要尽量造成这样的局势给对方,因为任何不是3的倍数的数加1或2都可以变成3的倍数,
同理减去1或2也可以变成3的倍数,也就是说假设目前的个数不是3的倍数,那我肯定能把它
拿成3的倍数,比如现在是11个,那我拿走2个就变成9,这样就造成对方为3的倍数局势,那
么对方拿m个我都可以通过拿...
分类:
其他好文 时间:
2014-08-12 22:04:34
阅读次数:
226
In previous post?Let‘s do our own full blown HTTP server with Netty 4?you and I were excited by creation of our own web server.?So far so good. But how good?? Given ordinary notebook? cat?/pr...
分类:
其他好文 时间:
2014-08-12 19:13:14
阅读次数:
300
对字符串“this is very good”进行翻转,即“good very is this”;
思路:
1.字符串的翻转的问题,可以使用栈实现。
2.先把所有字符翻转,然后对再对某一个单词翻转,最终实现题目要求。...
分类:
其他好文 时间:
2014-08-12 17:18:14
阅读次数:
197
1. 在解决方案中添加一个项目:JSControl
2. 在这个项目添加一个js文件(JScript1.js)
脚本的内容:
function showAlert(){
alert('Today is a good dary');
}
3. 改变JScript1.js的属性,Build Action为Embedded Resource(嵌入的资源)
4. 在JSControl项目的A...
分类:
Web程序 时间:
2014-08-12 13:42:14
阅读次数:
198
Symptoms
ORA-31693: Table data object "YXFUND"."MF_NOTTEXTANNOUNCEMENT" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-01555: snapshot t...
分类:
其他好文 时间:
2014-08-12 13:36:24
阅读次数:
550