CUB × Python — Lab I

Choose one of the two tasks and focus on it. You can still try both, but you only need to solve one. You may submit up to 20 attempts per task each day. There is no penalty for the number of submissions: only your best one will be scored.

You may use LLMs or other tools, but you must understand your solution completely. At the seminar on October 16th, you will defend your solution. After the defence, the teacher will assign the final score for this lab.

Brainfuck Mapping

Given a mapping between inputs and outputs, write a Brainfuck program that prints the correct output for each input while being as short as possible.

Scoring

Both tasks have many tests. Each test provides one input for your program and comes with its own size threshold: aim to meet it, or better still, beat it. A submitted YAML or Brainfuck program passes when its size is at most the threshold; a strictly shorter result earns bonus points.

Scores only make sense within a task. They cannot be compared across tasks, and they are not your final LMS score.

Your final score for the task will reflect both your achievements here and your defence at the seminar on October 16th. If you cannot answer questions about your solution, your final score will be zero — even if it is the best solution on the platform.