IARCS home > OLYMPIAD > Archives
Output format next up previous
Next: Nearest fraction Up: Chambers in a castle Previous: Input format

Output format

The output of your program should be exactly two lines, each line consisting of a single number. The first line should be the number of chambers. The second line should be the size of the largest chamber.

The correct output for the example in Figures 1 and 2 is shown below.


4
58


Note: Your program should not print anything other than these two numbers. Please remove all diagnostic print statements before making your final submission. A program with extraneous output will be treated as incorrect!







Madhavan Mukund 2003-05-22



Copyright (c) IARCS 2003-2024;   Last Updated: 23 May, 2003