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 |
Re:我已经wa的要死了 这是怎么回事啊In Reply To:我已经wa的要死了 这是怎么回事啊 Posted by:lccycc at 2009-08-16 09:07:50 寒心,本来这题思路就不是那么清晰,多次WA几乎让我想直接COPY标程提交了,(无耻一下+_+) 后来根据同胞们的经验,几经改动数组,才AC,最后AC前夕改的是res[][]和rec[][]的二维大小,由2*pzj→4*pzj。同僚们参考下吧……BS一下POJ T_T const int pzj=300; int ans[30],d[pzj],p[pzj],p_d; int num=0,res[30][4*pzj]; int rec[30][4*pzj]; bool compare(int a,int b) { return a<b; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator