Division of Artificial Intelligence and Integrated Computer Systems

Regler för SM i programmering


The contest will be held on Saturday, October 2, 2004, simultaneously in Lund, Umeå, Linköping and Stockholm. Teams/Universities may choise site to compete at.

Teams are assigned on a first-come first-served basis, but each University is guaranteed at least two places in the contest.

The contest director is solely responsible for interpreting the rules and for ruling on any unforeseen situations.


Candidates are allowed to use any written resource material such as books, manuals, program listings. Contestants may not bring any machine-readable versions of software or data. Contestants may not bring their own computers, computer terminals or calculators. Contestants may not bring any kind of communication device such as radio sets or cellular phones.

Teams may not accept help or advice on the problems from anyone not authorized by the contest director or head judge to give advice.

The contest will be held in a networked environment. The network may only be used to submit problems and to produce listings. Remote login, ftp, telnet, mail or other networking activities within the contest environment or with machines outside this environment are strictly forbidden.

A team may be disqualified by the contest director for any activity that jeopardizes the contest.

During the contest each team will have one copy of the problems and one single computer to their disposal.


Each problem will be posed in either English or Swedish. The problem set will typically consist of some problems posed in English and some problems posed in Swedish. All clarification requests must be expressed in English or Swedish.

Ambiguities and Problems

Judges will not invite questions about the problems. As far as possible, problems will avoid dependence on detailed knowledge of a particular applications area or a particular contest language. A contestant may submit a written claim of ambiguity or error in a problems statement by submitting a clarification request. If the judges agree that an ambiguity or error exists, a clarification will be issued to all contestants.

In case of trouble with the hardware or software set at the disposal of the teams by the organisers, this should be submitted as a written claim. The organisers will do their best to find an acceptable solution.


All programs should be written in C, C++, or Java. The program should consist of source code and the filename should be as stated in the problem. STL and the standard java libraries are allowed, as far as they are supported by the compiler at the contest site. The recommended compilers are gcc-3.3.3 and jdk-1.4.2.

The input should be read from standard input. This input is guaranteed to have the format as stated, unless the problem explicitly states the contrary.

The output should be send to standard output, unless otherwise stated. The output should be exactly equal to the format asked in the problem, as the jury may verify some of the problems by an automatic file comparison.

To verify the problems the jury will use the possibility to redirect standard input/output. For this reason the program should not contain anything that jeopardizes this possibility.

The range of input data will be explicitly stated in the problems.

Verification of the solutions

Solutions submitted for judging are called runs. How the submission procedure works will be explained at the beginning of the contest by the jury.

Each run is judged as accepted or rejected and the team is notified of the results. Judged runs will be marked as follows: correct, compilation error, runtime error, runtime limit exceeded, wrong output, file not found. In the last five cases the program is considered as being not correct. The error mentioned is the first error found by the judges.


Teams are ranked according to the most problems solved. Teams who solve the same number of problems are ranked by least total time. The total time is the sum of the time consumed for each problem solved. The time consumed for a solved problem is the time elapsed from the beginning of the contest to the submittal of the accepted run plus 20 minutes for each rejected run. There is no time consumed for a problem that is not solved.

Team composition

Each team consists of up to three contestants. Each contestant must be a student enrolled in a degree program at the sponsoring institution with at least a half-time load. A student who has competed in two World Finals is no longer eligible to compete. A student may compete in at most four of five consecutive regional contests beginning with the first regional contest held after beginning post-secondary studies at an institution of higher education. This means that students who started in the year 2000 or later is eligible. If you started earlier and had a break in your studies you may still be eligible, contact the contest director for decision.

Tillbaks till huvudsidan.
Dessa sidor underhålls av Fredrik Heintz och är senast uppdaterade 6 augusti 2005 kl 15:28:34 CEST.