James找到了他的朋友Harry要给女朋友的情书。James很爱恶作剧,所以他决定要胡搞一下。他把信中的每个单字都变成了回文。对任何给定的字符串,他可以减少其中任何一个字符的值,例如'd'可以变成'c',这算是一次操作。(另外,他最多只能将字符的值减少至'a','a'不能再被减少成'z')。找出将...
分类:
其他好文 时间:
2014-07-29 17:16:12
阅读次数:
295
Description
We all love recursion! Don't we?
Consider a three-parameter recursive function w(a, b, c):
if a
1
if a > 20 or b > 20 or c > 20, then w(a, b, c) returns:
w(20, 20, 20)
...
分类:
其他好文 时间:
2014-07-29 14:54:08
阅读次数:
278
Problem Description
After months of hard working, Iserlohn finally wins awesome amount of scholarship. As a great zealot of sneakers, he decides to spend all his money on them in a sneaker store.
...
分类:
其他好文 时间:
2014-07-29 14:42:05
阅读次数:
273
package stu.love.a;
/*
字符串:
*/
public class StringDemo
{
public static void main(String[] args)
{
//字符串是常量;一旦创建了字符串,就不能被改变了
String ss = "hello";
ss = "world";
System.out.println(ss...
分类:
编程语言 时间:
2014-07-29 14:36:28
阅读次数:
203
一道反分组背包,第一次接触这个,还是很不理解,看了好多网上的题解,接着不理解,或许是大神们写的思路和我思考的方向不一样,不过还是找到了比较简洁而又能反映出问题本质的代码,果断收藏贴上来 (没交,不知道是不是AC代码,主要是还自己从里头学点东西了~~)#include const int N=101,...
分类:
其他好文 时间:
2014-07-29 11:39:16
阅读次数:
201
love you my pigjava枚举类cmd进入某个目录2011-04-06 15:49:38| 分类:小知识| 标签:|字号大中小订阅1.开始->运行->CMD2.进入某个磁盘,直接盘符代号:如D:,不用CD 命令切换3.进入除根录以下的文件夹 cd 文件夹路径 例如我要进入 E:\Prog...
分类:
其他好文 时间:
2014-07-29 11:14:46
阅读次数:
177
F - I love sneakers! Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription After months of hard working, Iserlo...
分类:
其他好文 时间:
2014-07-29 11:00:57
阅读次数:
260
应用商店的小镜子A LVOE STORYI mean I knew it was ending, but I was still there, doing the same job I had been doing for the last 8 years. So my day to day exp...
分类:
其他好文 时间:
2014-07-28 23:44:54
阅读次数:
374
我们在java中
Java中初始化的顺寻?
java代码:
package sru.love.c;
class Person
{
String name = "Person";
static
{
System.out.println("我是 Person 的 static 代码块");
}
{
System.out.println("我是 Person 构...
分类:
编程语言 时间:
2014-07-26 02:56:06
阅读次数:
185
学习编程中,当我们遇到问题的时候,如何解决我们的问题?
动手编程,编一个小程序 就很容易 看见自己想要的结果和答案!
今天学习了 static {} 静态代码块,但是 搞不清楚 他和static main() 函数 谁先加载?
于是: 自己编写了一个小段代码:
代码如下:
package stu.love.a;
public class StaticDemo1 {
s...
分类:
其他好文 时间:
2014-07-26 02:12:49
阅读次数:
184