|
|||
SkyscrapersThe view of a big city is really impressive: a lot of skyscrapers, which can be seen well from a distance. Due to this, most big cities can easily be recognized from a photo, as their buildings are iconic.
Code City is rapidly developing as the capital of Code Country. The mayor of the city pays big attention to all construction works. His goal is to create the most beautiful city, so he announced a rigorous order: all buildings must be designed so that they produce a tiered view. This means that the height of each building must differ from the height of its two neighbors by exactly one story. Input SpecificationEach line of the input contains the height of the buildings of a street. The values follow each other in the order of the buildings, and all buildings are at least 1 story tall. Output Specification
For each street, output one line containing the word “ Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |