|
|
вернуться в форумOne test is broken, #@# !!! (+) Послано PGTU-2 3 дек 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, #@# !!! (+) > 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. |
|
|