| ||||||||||
| 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:AC感觉好怪啊!为什么啊?In Reply To:AC感觉好怪啊!为什么啊? Posted by:yzzhoo0 at 2010-06-09 12:06:36 > 开始时我的枚举这是这样的
> for(int i=0;i<n;i++)
> for(int j=i+1;j<n;j++)
> 然后除2
> 总是WA
> 后来我改为下面这样就AC
> for(int i=0;i<n;i++)
> for(int j=0;j<n;i++)
> if(i==j)
> {
> continue;
> }
> 然后所得的结果除4
> 郁闷这两种不是一样的嘛,为什么下面的就AC啊?????
上面的要除以4
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator