ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1056. Centers of the Net

One test is broken, #@# !!! (+)
Posted by PGTU-2 3 Dec 2000 00:05
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
Re: One test is broken, #@# !!! (+)
Posted by Marat Bakirov 6 Dec 2000 15:18
> 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.