今天对于内存的理解 又加深了一步:
对下面代码的理解:
class Person
{
private String name="xiaohong";
private int age=23;
private static String country="CN";
{
System.out.println(name+" "+age);
}
public Person(String...
分类:
其他好文 时间:
2014-07-26 02:11:03
阅读次数:
189
Square Country
大意: 买一块边长为 a 的正方形地需要的钱数是 a^2, 现在输入N为钱的数目,求最少购买地的块数可以凑够N。
思路:DP,由背包思想推出来的dp[i] = min(dp[i], dp[j-i*i]+1); 方块都是由正方形组成的,所以是i*i,循环的时候也是i*i。
#include
#define min(a, b)...
分类:
其他好文 时间:
2014-07-25 11:06:21
阅读次数:
195
1.1 查询出所有数据的指定键(name ,age ,country)db.persons.find({},{name:1,age:1,country:1,_id:0})2.查询条件2.查询条件2.1查询出年龄在25到27岁之间的学生db.persons.find({age: {$gte:25,$l...
分类:
数据库 时间:
2014-07-23 12:13:36
阅读次数:
275
Rails
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
There is a famous railway station in PopPush City. Country there is incre...
分类:
其他好文 时间:
2014-07-22 00:29:36
阅读次数:
210
Description
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It wa...
分类:
其他好文 时间:
2014-07-17 10:41:03
阅读次数:
220
/*
C - 堆栈A
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 1363
Description
There is a famous railway station in PopPush City. Country there ...
分类:
其他好文 时间:
2014-07-12 23:56:36
阅读次数:
530
Looks like your app is ONLY available in Thailand storefront - so the lookup should include country code in the base lookup URL:http://itunes.apple.co...
分类:
移动开发 时间:
2014-07-06 15:28:03
阅读次数:
547
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e...
分类:
其他好文 时间:
2014-06-16 11:17:45
阅读次数:
162
package 单例模式; import java.awt.List;import
java.util.ArrayList;import java.util.Arrays; public class Country implements
Comparable{ int jin; int yin; i...
分类:
其他好文 时间:
2014-06-13 15:38:12
阅读次数:
183