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:跪求各位大牛解释WAIn Reply To:跪求各位大牛解释WA Posted by:jki14 at 2011-08-24 15:43:32 > 用这段代码 WA了 > if( (sa[i]-na)*(sa[i-1]-na)<0 && hig[i]>ans )ans=hig[i]; > > 仅修改这段代码为下 就 AC了 求解释啊!!! > if( ((sa[i]<na && sa[i-1]>na) || (sa[i]>na && sa[i-1]<na)) && hig[i]>ans )ans=hig[i]; 跟你一样啊,乘法~ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator