|  | 
|  | 
| back to board | One test is broken, #@# !!! (+) Posted by PGTU-2  3 Dec 2000 00:05One test has data in one line, but in term wrote:
 Input
 
 The first string of input contains integer N - quantity of
 computers. The other successive strings (N-1) contain
 protocol.
 
 Output
 
 Output contains ordinal numbers of the determined net
 centers in ascending order.
 
 Sample Input
 
 5
 1
 1
 2
 2
Re: One test is broken, #@# !!! (+) > One test has data in one line, but in term wrote:>
 > Input
 >
 > The first string of input contains integer N - quantity
 of
 > computers. The other successive strings (N-1) contain
 > protocol.
 >
 > Output
 >
 > Output contains ordinal numbers of the determined net
 > centers in ascending order.
 >
 > Sample Input
 >
 > 5
 > 1
 > 1
 > 2
 > 2
 
 You're right! The problrm text was erroneous, some tests
 look like
 
 10000
 1  1  1  1  2  2  2  2  2  3  3  3  3  3  4  4  4  4  4
 5  5  5  5  5.....
 ....
 
 I fixed the problem text and sample input.!
 
 I recommend to use the reading algorithm, that doesn't
 depend on number of spaces and line breaks.
 | 
 | 
|