To see this solution, you need a browser that is able to run
Java applets. Alternatively,
follow the instructions at the end of this page for how to run
the program outside your browser.
To run the program:
To display the solutions to 3(d) - there are many! - enter -1 as the number of lines. |
BIO98R1Q3App.class
with the command
java BIO98R1Q3App.classsubstituting the name of your Java runtime interpreter for
java
. Alternatively, follow the instructions
given in your Java documentation.
This program may be freely copied by persons or organisations involved in the British Informatics Olympiad or the International Olympiad in Informatics, on condition that no changes are made and this notice is not altered. Distribution for profit is forbidden unless permission is first obtained in writing from the BIO.
This program is for educational purposes only and comes with no warranty, implied or otherwise, as to its fitness for any purpose.
Author: Antony Rix
Internet: http://www.christs.cam.ac.uk/bio/
E-mail: (see contact details from home page)
S-mail:
The British Informatics Olympiad
Christ's College
Cambridge CB2 3BU
United Kingdom
The British Informatics Olympiad