Chanel brand is taking the high road, stylish simplicity, simple and comfortable, pure style. "Fashion passes, style remains" still the guiding force ...
分类:
其他好文 时间:
2014-07-22 00:27:37
阅读次数:
268
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.以下为补充知识,百度到的罗马数字写法:个位数举例I, 1 】II, 2】 III, 3】...
分类:
其他好文 时间:
2014-07-22 00:04:34
阅读次数:
190
staic变量是怎么样执行的? public class Client { public static int i = 0; static { ? i = 100; } public static void main(String[] args) { ? System.out.println(i); } } 这段程序很简单,输出100,那么...
分类:
编程语言 时间:
2014-07-21 23:30:21
阅读次数:
309
private static void prime(int i){
int j = 2;
while(true){
while(i%j == 0 && i != j){
System.out.println("Prime num " + j);
i = i/j;
}
if(i == j){
...
分类:
其他好文 时间:
2014-07-21 23:30:20
阅读次数:
426
UVA 1560 - Extended Lights Out
题目链接
题意:给定一个矩阵,1代表开着灯,0代表关灯,没按一个开关,周围4个位置都会变化,问一个按的方法使得所有灯都变暗
思路:两种做法:
1、枚举递推
这个比较简单,就枚举第一行,然后递推过去,每次如果上一行是亮灯,则下一行开关必须按下去
2、高斯消元,
这个做法比较屌一些,每个位置对应上下左右中5个位...
分类:
其他好文 时间:
2014-07-21 23:30:00
阅读次数:
244
//十进制的数转化为二进制 public static void toBin(int num){ if(num > 0){ toBin(num/2); System.out.println(num%2); } } 以上面的十进制转化为二进制为例:传参数传入6,把6转化为二进制:使用递归...
分类:
其他好文 时间:
2014-07-21 23:29:01
阅读次数:
225
安装ez_setup.py时出现了这个问题:UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)Something went wrong during the...
分类:
编程语言 时间:
2014-07-21 23:27:53
阅读次数:
236
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289
Distinct Subsequences
A subsequence of a given sequence is just the given sequence with some elements (possibly none) left out. Formally, given a sequence X = x1x2…xm,
another sequence Z = z1...
分类:
其他好文 时间:
2014-07-21 15:44:16
阅读次数:
244
functionlog(msg){
vari=newImage();
i.src="http://127.0.0.1/log?msg="+msg;
}@RequestMapping(value={"/log"},produces={"application/json"},method={RequestMethod.GET},params={"msg"})
publicModellog(Modelmodel,Stringmsg){
System.out.println(msg);
model.addA..
分类:
其他好文 时间:
2014-07-21 12:18:33
阅读次数:
212