TestMain.javapackagelistTest;publicclassTestMain{publicstaticvoidmain(String[]args){MyListmyList=newMyList();myList.add("1");myList.add("2");myList.ad...
分类:
编程语言 时间:
2014-07-08 00:52:35
阅读次数:
242
There are a bunch of different methods you can use to back up your MongoDB data, but if you want to avoid downtime and/or potential
performance degradation, the most common advice seems to be that y...
分类:
数据库 时间:
2014-07-06 09:26:04
阅读次数:
437
UVA 1341 - Different Digits
题目链接
题意:给定一个正整数n,求一个kn使得kn上用的数字最少,如果相同,则输出值最小的
思路:
首先利用鸽笼原理证明最多需要2个数字去组成
设一个数字k,组成k,kk,kkk,kkkk... %n之后余数必然在0 - (n - 1)之间,所以必然能选出两个余数相等的数字相减为0,这个数字就是由0和k组成的。
...
分类:
其他好文 时间:
2014-07-05 22:56:18
阅读次数:
289
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
有f(n) = f(n - 1) + f(n...
分类:
其他好文 时间:
2014-07-04 08:39:44
阅读次数:
304
题目如下:
Problem D: XYZZY
ADVENT: /ad?vent/, n.
The prototypical computer adventure game, first designed by Will Crowther on the PDP-10 in the mid-1970s as an attempt at computer-refereed fantasy...
分类:
其他好文 时间:
2014-07-03 18:09:47
阅读次数:
211
refer linkThe"*and"+registers are for the system's clipboard (:help registers). Depending on your system, they may do different things. For instance, ...
分类:
其他好文 时间:
2014-07-03 12:10:56
阅读次数:
195
问题:AD组策略定义用户设置,登录和注销脚本,但在在客户端没有生效,后通过在客户端执行Gpreuslt查看策略生效情况,发现在用户设置中DefaultDomainPolicy策略没有应用。提示“正在筛选:没有应用(空)”使用gpreuslt/h
gpresult.html查看策略应用情况.用户设置中默认策略被拒绝..
分类:
其他好文 时间:
2014-07-02 15:31:42
阅读次数:
444
The Story:Last week, I found one of our embedded arm linux device ran out of flash space( totally only 128M for apps and OS).After checking for a whil...
分类:
其他好文 时间:
2014-07-02 14:30:13
阅读次数:
317
作为AD的管理员,日常备份和恢复是一项重要工作,但是大多数情况下,管理员可能需要面对的不是恢复整个域控制器,而是一些意外删除的AD对象的恢复,在WindowsServer2008AD域中,可以从AD备份中进行授权还原,但是必须在目录服务还原模式(DSRM)下进行,还原过程中,域控制器保..
分类:
Web程序 时间:
2014-07-02 10:59:35
阅读次数:
289
首先,我们看看什么是盐:http://zh.wikipedia.org/zh/%E7%9B%90_%28%E5%AF%86%E7%A0%81%E5%AD%A6%29通常情况下,当字段经过散列处理(如MD5),会生成一段散列值,而散列后的值通常是无法通过特定算法得到原始字段的。可是某些情况,比方一个大...
分类:
其他好文 时间:
2014-07-02 10:27:21
阅读次数:
173