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 |
跪求各位大牛解释WA用这段代码 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