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:测试数据

Posted by marktrue at 2011-03-10 18:06:43 on Problem 1094
In Reply To:测试数据 Posted by:qlyzpqz at 2009-11-07 22:54:20
有个问题,如果是通过前n个输入可以把字母进行排序,但是第n+1个输入数据导致无法进行排序,形成回路。那么,应该是输出:
Sorted sequence determined after n relations: …….
呢,
还是输出:
Inconsistency found after n+1 relations.
我对这个有疑问,示例测试数据:
5 7
A<C
C<D
B<C
B<A
E<D
C<E
E<C
0 0
因为我的程序AC了,但是好像对于这组数据输出地是
Sorted sequence determined after n relations: …….
那么是测试数据考虑不全面还是本来就应该输出这个……求高人解答

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