| ||||||||||
| 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 | |||||||||
你可能这里错了 for(int i=0;i<n;i++)
{
if(sign[i]==0)
{
l=woode[i].l;
w=woode[i].w;
sign[i]=1;
ans++;
}
else continue;
for(int j=i+1;j<n;j++)
{
if(sign[j]==1)continue;
if(woode[j].l<l||woode[j].w<w)continue;
sign[j]=1;
l=woode[j].l;//这里大家是否漏写啊 我第二次写还是漏了
w=woode[j].w;
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator