Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

简单分析

Posted by GreatAccepted at 2010-01-25 19:14:20 on Problem 1068
在还原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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator