Baltic Olympiad in Informatics

First Competition Round

Task name BARREL GEMS TABLE
Input file BARREL.IN GEMS.IN TABLE.IN
Output file BARREL.OUT GEMS.OUT TABLE.OUT
Time limit
(per test)
2 seconds 2 seconds none
Tests 14 10 10
Value 100 points 100 points 100 points
Maximal score for day: 300 points

In the task TABLE, each output file must be submitted separately and will also be graded separately.