CSES - Datatähti Open 2017 - Instructions

In each task, you should submit a solution that reads from the standard input and writes to the standard output. Each task has a time limit and a memory limit. In addition, the tasks are divided into subtasks that are ordered from the easiest to the hardest.

Your solution will be tested on several test cases. Each subtask will be graded separately so that you will get the points for the subtask if your solution passes all tests. You can send multiple solutions for a task, and your final score is the highest score among them.

Grading

When you submit a solution for grading, the result for each test case is one of the following:

  • ACCEPTED
  • WRONG ANSWER
  • TIME LIMIT EXCEEDED
  • OUTPUT LIMIT EXCEEDED
  • RUNTIME ERROR (for example, memory limit exceeded or unhandled exception)

You will get the points for a subtask if the result for every test case is ACCEPTED. Otherwise, you will get 0 points.

Technical information

The largest allowed size of a source code is 128 kB.

The C++ compiler is g++ 5.4.1 with flags -std=c++0x -O2 -Wall.

The Java compiler is OpenJDK 1.8.0_151 (Java 8).

The Pascal compiler is Free Pascal Compiler 2.6.2-8.

The Python interpreters are Python 2.7.6 and Python 3.4.3.