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 |
AC感觉好怪啊!为什么啊?开始时我的枚举这是这样的 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啊????? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator