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:这个程序确实WA, 但是您可以找一个让这个程序WA的数据吗?

Posted by liuche_90 at 2008-05-22 11:32:49 on Problem 1011
In Reply To:这个程序确实WA, 但是您可以找一个让这个程序WA的数据吗? Posted by:gzw_02 at 2008-05-22 00:31:41
有一组数据:
short sticks[maxsize]={49,13,21,17,26,48,21,14,24,33,29,20,48,11,20,40,48,31,1,19,22, 
3,14,47,35,9,35,34,
29,27,45,4,24,47,8,21,1,46,10
};
竟然在执行之前没有排序..
那么输出答案是142

如果讲它们排好序..
则结果是71..


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