++(a++) a++相当于int a;{int temp=a;a++;teturn temp;}所以我们可以将++(a++)看成++temp;而temp显然是一个右值,所以不能用啊~~ L-value中的L指的是Location,表示可寻址。The "l" in lvalue can be tho...
分类:
编程语言 时间:
2014-09-14 23:35:27
阅读次数:
227
import java.util.*;public class GuessNumber { public static void main(String[] args) { int num = new Random().nextInt(100), temp; Sca...
分类:
其他好文 时间:
2014-09-14 23:35:07
阅读次数:
323
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5014解题报告:西安网赛的题,当时想到一半,只想到从大的开始匹配,做异或运算得到对应的b[i],但是少了一个操作,ans[i] = temp,却没有想到ans[temp] = i;所以就一直卡在这里了,因...
分类:
其他好文 时间:
2014-09-14 23:28:07
阅读次数:
219
第一:简单的命令行(没有package)
c:/temp/bin/GetGreeting.java
[java] view
plaincopy
public class GetGreeting
{
public static void main(String [] args)
{
S...
分类:
编程语言 时间:
2014-09-13 20:13:05
阅读次数:
321
1.castCAST('Other' as NVARCHAR2(30))2.fordeclare v_guid char(32); channelidStrs varchar2(4000):='';begin v_guid:=sys_guid(); --delete temp_sto...
分类:
数据库 时间:
2014-09-13 15:49:55
阅读次数:
196
题意。。。
策略:rt
代码:
#include
#include
#define temp 10003
int ans(int n, int p){
int res = 1;
n %= temp;
while(p){
if(p&1) res = (n*res)%temp;
n = (n*n)%temp;
p /= 2;
}
return res;
}
int ma...
分类:
其他好文 时间:
2014-09-13 00:49:44
阅读次数:
281
例如:UTF8---ISO-8859-1string string = "这是中文";Encoding utf8 = Encoding.UTF8; Encoding ISO = Encoding.GetEncoding("ISO-8859-1");//换成你想转的编码 byte[] temp = u...
分类:
其他好文 时间:
2014-09-12 19:08:03
阅读次数:
462
题意:给你n个模式串,m个文本串,问你m个文本串中分别出现了几个模式串解题思路:AC自动机模板题,我们只需要把 end 变为 n的序号就行。但是要注意这里所有串的范围解题代码: 1 // File Name: temp.cpp 2 // Author: darkdream 3 // Creat...
分类:
其他好文 时间:
2014-09-11 19:05:42
阅读次数:
181
/*删除数组中的重复元素,并返回去重的数组*/function delRepeatNum(arr){ var result = []; var middleObj = {}; var temp; for(var i = 0; i < arr.length; i++){ ...
分类:
其他好文 时间:
2014-09-11 19:04:02
阅读次数:
143
题意:给你n个模式串,问一共有多少个模式串在文本串中出现过解题思路:对于多模式,单文本串的题目显然是要用 AC自动机来解决的,多文本串,单模式串,显然是要用KMP求解的,这也是KMP 和 AC自动机同为字符串匹配的不同之处。解题代码: 1 // File Name: temp.cpp 2 // .....
分类:
其他好文 时间:
2014-09-11 17:04:42
阅读次数:
195