@@fetch_status是MicroSoft SQL
SERVER的一个全局变量其值有以下三种,分别表示三种不同含义:【返回类型integer】0 FETCH 语句成功-1 FETCH
语句失败或此行不在结果集中-2 被提取的行不存在@@fetch_status值的改变是通过fetch next...
分类:
其他好文 时间:
2014-06-03 14:45:24
阅读次数:
301
Implementatoito convert a string to an
integer.Hint:Carefully consider all possible input cases. If you want a
challenge, please do not see below and ...
分类:
其他好文 时间:
2014-06-02 08:51:43
阅读次数:
233
ParencodingsDescriptionLet S = s1 s2...s2n be a
well-formed string of parentheses. S can be encoded in two different ways: q By
an integer sequence P ...
分类:
其他好文 时间:
2014-06-02 06:19:50
阅读次数:
185
java中判断相同有两种方式:
第一种:使用==直接判断相同,它适用于两个变量之间、一个变量和一个对象之间相比较。
如:
int a=3,c=3;
Integer b=new Integer(3);
System.out.println(a==c);
System.out.println(a==b);输出结果为:
true
true
第二种:使用equals()函数比较,它适用于两个对...
分类:
编程语言 时间:
2014-06-02 04:58:41
阅读次数:
252
题意:给出两个01字符串s1,s2.每次改变s1上m个位置的字符。问k步之后使得s1变为s2的方法有多少种。
解法:DP,关键是状态的设计。考虑还是唯一性和可传递性。dp[i][j]表示第i步后有j个不同到目标的走法数。记忆化搜索dp[0][dif](dif表示初始时不同字符的个数)。转移时候枚举选择情况即可。
代码:/*****************************...
分类:
其他好文 时间:
2014-06-02 04:58:01
阅读次数:
216
问题:
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-queens...
分类:
其他好文 时间:
2014-06-01 18:08:28
阅读次数:
334
Description
Golden ratio base (GRB) is a non-integer positional numeral system that uses the golden ratio (the irrational number (1+√5)/2 ≈ 1.61803399 symbolized by the Greek letter φ) as its base....
分类:
其他好文 时间:
2014-06-01 15:38:24
阅读次数:
252
The Game of Coins
mark:
#include"cstdio"
#include"iostream"
#include"queue"
#include"algorithm"
#include"set"
#include"queue"
#include"cmath"
#include"string.h"
#include"vector...
分类:
其他好文 时间:
2014-06-01 13:58:31
阅读次数:
196
Mysql存储过程知识,案例:create procedure delete_setting(in
p_settingid
integer)begin delete from setting where settingid=p_settingid;endselect `name`
from mysq...
分类:
数据库 时间:
2014-06-01 12:19:33
阅读次数:
569
Merge Sorted ArrayGiven two sorted integer
arrays A and B, merge B into A as one sorted array.Note: You may assume that A
has enough space (size that ...
分类:
其他好文 时间:
2014-06-01 12:04:32
阅读次数:
175