Skip to content

theodormoroianu/mateinfoUB-2024

Repository files navigation

MateInfoUB, 2024

Statements, Editorials, Solutions

The following problems were given during the testing round:

The following problems were given during the contest:\

Each problem has the statement enunt.pdf, the official solution sol.cpp, and the tests tests/.

The editorials are available in the root of the repository.

CPREP

This uses cprep, writen with love by Bicsi. However, with less love, he did not include the ability to use checkers.

I implemented checker support on this fork, which you need to clone and build:

git clone https://github.com/theodormoroianu/cprep
cd cprep
pip3 install .

Structure

  • sol.cpp is the main intended solution.
  • Any other source file starting with sol_ will be considered alternative solution.
  • gen.cpp generates testcases.

Creating The Tests

Run:

$ cprep generate

Checking The Tests

Run:

$ cprep evaluate

CMS Checker

We have to upload a staticly linked checker to CMS. To do this, we need to compile the checker with the following command:

g++ -O2 -static CMS_checker.cpp -lstdc++ -lm -lc -std=c++20 -s -o checker

Use prajitura-cu-mujdei/CMS_checker.cpp as example. The documentation is here.