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

Re:我已经wa的要死了 这是怎么回事啊

Posted by xiaojie at 2009-08-22 10:53:43 on Problem 1015
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:
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