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:AC感觉好怪啊!为什么啊?

Posted by AKsoftware at 2010-11-20 01:04:10 on Problem 2002
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:
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