| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
简单分析在还原S时,可以这样
定义数组且mat[...] <==> S
输入数组cnt[...]
则可以
memset(mat,-1,sizeof(mat));
for(i=0;i<totalNum;++i){
mat[i+cnt[i]]=1;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator