URAL 1290. Sabotage (sortings)

However, Leo faced trouble during the exploration of the following function: input is the array of positive integer numbers. First, function prints quantity of numbers in the array onto a sheet of paper. Then quantity of numbers in the array greater than 1 is printed. Then quantity of numbers greater than 2 and so on, until the function encounters zero (zero is never printed out). After that, special mechanical manipulator puts this sheet of paper into scanner, which reads this set of numbers into memory and the described operation repeats again. After that the new paper with numbers comes out from the printer. The scanner reads these new numbers, and stores them into the array. This array is the result of the function.

,放下一处烦恼,收获一个惊喜;放下一种偏见,收获一种幸福;

URAL 1290. Sabotage (sortings)

相关文章:

你感兴趣的文章:

标签云: