题目链接:点击打开链接
维护区间左起连续的最大和,右起连续的和。。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 50050
#define Lson(x) tree[x].l
#define Rson(x) tree[x].r
#defi...
分类:
其他好文 时间:
2014-08-18 23:35:33
阅读次数:
272
Q311 How do I disable the "Back" button of a browser?You are here:irt.org|FAQ|JavaScript|History| Q311 [previousnext]Easy answer - you can't.Longer an...
分类:
其他好文 时间:
2014-08-18 16:07:22
阅读次数:
206
2014-08-16 BaoXinjian一、SQL Tunning类1. 列举集中表的连接方式Answer:等连接(内连接)、非等连接、自连接、外连接(左、右、全)Or hash join/merge join/nest loop(cluster join)/index join ??连接类型定义...
分类:
数据库 时间:
2014-08-18 12:11:14
阅读次数:
398
1。C++ 如何定义一个定长字符串, 若不足位数,就补字符串"0"?eg:CString str1 = “123”;不足20位,前面补“0”,实现效果为“00000000000000000123”answer:str.Format(_T("%020s"),_T("aaa"));2.vs2010建的单...
分类:
其他好文 时间:
2014-08-18 01:25:13
阅读次数:
269
http://acm.hdu.edu.cn/showproblem.php?pid=4027x可能比y大。 区间的每一个数在经过几次开方之后会变成1之后,在这个区间全部变成1之后,这个区间不用向下更新。这里可以判断一下。。 1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2014-08-16 16:27:10
阅读次数:
179
Short answer: no practical danger yet, but read on for a better way...What's this ptrace thing anyway?this is due to a bug in the Ubuntu kernel that p...
分类:
其他好文 时间:
2014-08-13 12:36:16
阅读次数:
697
转载自:http://www.reddit.com/r/Database/comments/27u6dy/how_do_you_build_a_database/ciggal8Its a great question, and deserves a long answer.Most database...
分类:
数据库 时间:
2014-08-12 21:24:44
阅读次数:
315
1. Zachman FrameworkInformation (Data) - Answer the Question 'What?'Contextual: List of Things important to the BusinessConceptual: Semantic Model - T...
分类:
Web程序 时间:
2014-08-12 13:01:54
阅读次数:
279
有的时候真是无力吐槽。。。G++ AC,C++ WA。这是什么心态。。。
这道题目耗费了半个小时写代码,却用了两天debug()........
dp[i][j][k]:
i为0||1,当i=0时代表L,i=1时代表R
第i状态下,数字j出现的次数为10^k次有多少种情况。
然后把i为1的剪掉i为0的。
然后算出最终的answer数组。
然后根据answer数组算出最后的f,这里有一...
分类:
其他好文 时间:
2014-08-12 10:22:23
阅读次数:
276
Q. What’s the difference between priority and severity?Answer:“Priority” is associated with scheduling, and “severity” is associated with standards.“P...
分类:
其他好文 时间:
2014-08-12 10:05:13
阅读次数:
209