Delivering the Solutions
Ending the Competition
Gnu C++ switches
BOI 2002 competition days are Thursday, 25 April 2002 and Friday, 26 April 2002. On each of these days contestants have to complete competition tasks within five hours.
For each competition round each contestant will be allowed to use one IBM PC-compatible computer. The guaranteed configuration of the computer includes a US keyboard, mouse and color screen.
Blank paper and all necessary forms will be available in a competition room. Contestants can bring pens, pencils and erasers with them. Using printed materials (except official BOI 2002 materials), electronic devices or diskettes (except for official BOI 2002 diskettes) prohibited.
The following software will be available on each computer:
On Wednesday (24 April 2002) the trial session will be available.
Configuration of these computers will be the same as competition computers configuration.
The tasks at BOI'02 are intended to be of an algorithmic nature. That is, the focus is on designing correct and efficient algorithms.
The source code of each solution must be written in one file with the name specified in the task description. As a rule, each program must read input data from an ASCII text file with the name given in the task description. Contestants must not include full path in file open operations. They must assume that input/output files are in the current directory (if special requirements are not stated in the task description). Programs must not read any additional data neither from a keyboard nor from files not specified in the task description. Contestants may always assume that the input data agrees with the task description. Programs must be written so that they are executable on other computers with similar characteristics.
When we speak of 'a line of input file', this includes a terminating end-of-line. The structure of input is always such that a contestant must not worry about end-of-file conditions. Input values are separated by either a single space character or a single end-of-line if it is not specified otherwise in the task description.
Programs must write their output to the ASCII text file with the name specified in the task description. It is allowed to make working files in the current directory during program execution.
Output on the screen or contents of other files will not be evaluated. Output data must consist of sequence of items separated by space characters or end-of-line symbols as specified in the task description. Contestants must not add output of their own (even single space character).
Programs must not modify hardware and operating system structures, i.e. interrupt vectors, clock, etc. Programs should neither expect nor depend on having any more than 16 MB of free memory, stack size should not exceed 0,5 M. The size of source file should not exceed 1 MB.
When contestants enter a competition room at the beginning of a competition round, their computers will be switched on. Competition tasks will be inside an envelope next to the computer. Do not open the envelope until the start signal is given.
For each contestant a task description is presented in English and in his/her native language (if such a translation is prepared by a national team leader). Task description in English is binding and official.
A contestant may ask a room supervisor for assistance at any time. The supervisors will NOT answer questions about the competition tasks (see Requests), but will deliver your question forms, help you find toilets, and attend to computer problems.
Contestants may submit questions and technical problem requests.
Questions must be written on special forms available in the competition room in English or in their native language. In the latter case the request will be translated into English by the national team leader. Requests should be submitted to the room supervisor.
Contestants may ask questions concerning the competition tasks only
during the first hour of the competition. Only one of the following three
answers is possible:
Yes, No or No Comment.
All questions not related to the text of the competition tasks will be answered No Comment. The Jury will answer every question submitted by contestants. This may take some time, so the contestant should continue working while waiting for the answer to a given question. The contestant shall not be involved in a discussion.
During the competition contestants will be able to get printouts of ASCII files. They should save the file to the official BOI 2002 floppy, write down the file name on the request form, and hand out the floppy and the request form to the supervisor. Printouts will be delivered by the supervisors.
If contestants encounter problems with hardware they can submit a technical problem request to the room supervisor. In case of hardware failure extra time will be granted to a contestant, but this will cover only the amount of time needed to replace the hardware.
Contestants should save their solutions (i.e. source files) into the designated directory and in the official BOI 2002 floppy, using names specified in the task descriptions. The evaluator looks for the source file in the floppy and compiles it using the command line compiler with switches indicated below and without any options and/or directives. In case of diskette reading failure the evaluator looks for the source file in the designated directory of the contestant's computer.
Contestants will be warned both 15 and 5 minutes before the end of the competition. Before the end of the competition contestants have to:
On every competition day, an evaluation process starts after the competition ends. The evaluation will be provided on separate computers with similar characteristics as a contestants computer.
Evaluation of a program involves several "test runs" with confidential input data and special evaluation software. A test run for a program consists of the following steps:
The Free Pascal sources will be compiled using the following switches:
|-Co-||check overflow of integer operations|
|-Fu<x>||adds <x> to unit path (where x = "fpc rtl directory")|
|-gl||use line info unit to show more info for backtraces|
|-Sg||allow LABEL and GOTO|
|-So||tries to be TP/BP 7.0 compatible|
|-O2||level 2 optimizations (-O1 + slower optimizations)|
|-Op3||set target processor to PPro/PII/c6x86/K6 (tm)|
|-n||don't read the default config file|
The Gnu C++ sources will be compiled using the following switches: