You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep ...
分类:
其他好文 时间:
2018-02-10 23:24:17
阅读次数:
186
有点小细节需要注意 sum实时维护有效的连续和 C++ / H E A D / ll dp1[maxn],dp2[maxn]; ll a[maxn],n,sum; int main(){ while(~iin(n)){ rep(i,1,n) a[i]=read(); dp1[0]= (1ll ...
分类:
其他好文 时间:
2018-02-10 11:17:29
阅读次数:
156
```C++
/*H E A D*/
int nxt[maxn];
char P[maxn];
void buildNext(){ nxt[1]=0; int j=0,m=strlen(P+1); rep(i,2,m){ while(j&&P[i]!=P[j+1])j=nxt[j]; if(P[i]... ...
分类:
其他好文 时间:
2018-02-09 20:41:49
阅读次数:
138
yum install libreoffice 办公软件 yum install ntfs-3g 可以兼容ntfs格式的磁盘 添加yum 源,添加aliyun的epel源 1。加源 [plain] view plain copy # wget -O /etc/yum.repos.d/epel.rep ...
分类:
其他好文 时间:
2018-02-09 15:34:33
阅读次数:
151
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repocurl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/rep ...
分类:
数据库 时间:
2018-01-31 14:48:35
阅读次数:
208
这道题被马老板毒瘤了一下,TLE到怀疑人生 //然而BZOJ上妥妥地过了(5500ms+ 400ms+) 要么SPFA太玄学要么是初始化block被卡到O(n^4) 不管了,不改了 另外DP方程值得学习 C++ include define rep(i,j,k) for(int i=j;i vec[ ...
分类:
其他好文 时间:
2018-01-27 17:17:44
阅读次数:
157
最近在做h5 video的时候,发现给video的默认图片不会充满整个video窗口,就在网上找了很久,终于解决这个问题: video{ width: 100%; height: 100%; background:transparent url('img/1.jpg') 50% 50% no-rep ...
分类:
其他好文 时间:
2018-01-26 18:49:39
阅读次数:
565
题目 请计算C[k]=sigma(a[i] b[i k]) 其中 k include include include include include define pi acos( 1) define LL long long int define REP(i,n) for (int i = 1; ...
分类:
其他好文 时间:
2018-01-25 13:14:48
阅读次数:
81
Report report = new Report();// register the "Products" tablereport.RegisterData(dataSet1.Tables["Products"], "Products");// enable it to use in a rep ...
分类:
其他好文 时间:
2018-01-25 11:10:05
阅读次数:
167
Python 有办法将任意值转为字符串:将它传入repr() 或str() 函数。 函数str() 用于将值转化为适于人阅读的形式,而repr() 转化为供解释器读取的形式 (如果没有等价的语法,则会发生SyntaxError 异常) 某对象没有适于人阅读的解释形式的话, str() 会返回与rep ...
分类:
编程语言 时间:
2018-01-22 21:14:00
阅读次数:
155