#include using namespace std;void f(int x){ if(x>x; f(x); return 0;}View Code#include using namespace std;void f(int x){if(x>x; f(x);ret...
分类:
其他好文 时间:
2014-07-29 11:46:56
阅读次数:
221
Typical recurrsion\DFS problem. Just take care of memory use.class Solution {public: vector> ret; void go(int currMaxN, int currK, int k, unorde...
分类:
其他好文 时间:
2014-07-28 11:35:40
阅读次数:
240
①jmp是不负责任的调度,不保存任何信息,不考虑会回头。跳过去就什么也不管了。②call,保存eip等,以便程序重新跳回。ret是call的逆过程,是回头的过程。这都是cpu固有指令,因此要保存的信息,不用我们自己保存。我们直接使用指令即可③同一任务内特权级转移,跟 ②差不多,不过要准备个tss,并...
分类:
其他好文 时间:
2014-07-27 21:43:05
阅读次数:
195
求最大价值:要求恰好装满背包,那么在初始化时除了dp[0]为0其它dp[1..V]均设为-∞
求最小价值:要求恰好装满背包,那么在初始化时除了dp[0]为0其它dp[1..V]均设为∞
代码如下:
注意下标问题
#include
int p[1008],w[1008];
int dp[10000];
int min(int a,int b)
{ret...
分类:
其他好文 时间:
2014-07-26 02:00:06
阅读次数:
169
在xamarin中对json字符串进行解析,使用System.Json时出现怪问题: json-string = { "ret" : "OK" }使用如下代码解析: /// 解析 : { "ret":"xxxxx" } /// /// ...
分类:
Web程序 时间:
2014-07-26 01:35:46
阅读次数:
260
新建存储过程 USE?[数据库名]
GO
SET?ANSI_NULLS?ON
GO
SET?QUOTED_IDENTIFIER?ON
GO
ALTER???proc?[dbo].[p_basecheck](@dm?varchar(30),@mc?varchar(200),@bz?varchar(200),@RET?INT?OUT)????...
分类:
数据库 时间:
2014-07-25 00:10:14
阅读次数:
318
X mod f(x)
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Problem Description
Here is a function f(x):
int f ( int x ) {
if ( x == 0 ) ret...
分类:
其他好文 时间:
2014-07-24 11:34:30
阅读次数:
281
IE Javascript快捷键操作 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="ret....
分类:
Web程序 时间:
2014-07-23 14:52:26
阅读次数:
380
public class Solution { public int reverse(int x) { int ret=0; while(x!=0) { int t=x%10; ret=ret*10+t; ...
分类:
其他好文 时间:
2014-07-22 23:25:57
阅读次数:
213
软件破解常用汇编指令 cmp a,b // 比较a与b mov a,b // 把b值送给a值,使a=b ret // 返回主程序 nop // 无作用,英文(no operation)简写,意思“do nothing”(机器码90) ...
分类:
其他好文 时间:
2014-07-22 23:12:12
阅读次数:
305