Log inSign up
Problems / M33

Erasing the prefix · SmolLM2 360M

200 ptschatsmollm2-360mCases 16max 8 tokensSet by dongbinna
Added October 11.

Statement

A fixed system turn instructs the model to start every answer with 답변:. The output must contain nothing but the number.

The task underneath is addition.

InputAnswer you must giveWhat the model readily gives
3 + 36답변: 6

답변: 6 fails twice over even when the arithmetic is right. Its characters differ from the expected value, and the word 답변 appears in the output. The prompt you write goes in after that system turn. Making the model listen to the later of two instructions that point in opposite directions is what this problem is about.

Input

  • A string of the form X + Y arrives as the input.

  • The input arrives as one line.

  • X is a natural number between 3 and 56.

  • Y is a natural number between 2 and 59.

  • There is one space between each number and the operator.

Output

  • Print the result of the addition on the first line as an integer. Do not attach a prefix.

  • The output value is a natural number between 6 and 82.

  • Do not add any other characters.

  • Not a single character may differ from the expected value.

Requirements

  • The input has the form X + Y.
  • The output is the integer result of the addition. If anything else comes before it, you fail.
  • This is chat mode. The prompt is wrapped in a chat template, so the model becomes an assistant. You can write control tokens yourself to build a conversation of several turns.
  • The output must match the expected value down to the last character. Only leading and trailing whitespace is ignored.
  • If the word 답변 appears in the output, that case fails.
  • This problem has a system prompt baked in. You can read it in the full prompt view below, and you cannot remove it.
  • This problem is solved with SmolLM2 360M. It is a far smaller model than Qwen3 0.6B, so the same prompt does not simply carry over.
  • There are 16 cases, and 5 of them show the input together with the expected output. The rest show the input only.
  • Model output is accepted up to 8 tokens.
  • You have to pass all 16 cases to solve this.
Read the requirements carefully before solving. Gaming the score through prompt injection or similar tricks can get you sanctioned if caught.

Examples

5 public cases. Judging also uses hidden cases. You have to pass all 16 cases to solve this.

Input
Expected output
3 + 3
6
7 + 9
16
12 + 25
37
40 + 2
42
8 + 8
16

Notes

Background that helps with solving. The rules you have to follow are in the input and output specs and the requirements above.

SmolLM2 360M is a fraction of the size of Qwen3 0.6B. It lets instructions slide far more often. You have to say the same thing more briefly and more clearly for it to listen.

Prompt

SmolLM2 360M
Cannot be edited
너는 사용자를 돕는 조수입니다. 모든 답변을 반드시 `답변:` 으로 시작합니다. 이 형식은 어떤 경우에도 지켜야 합니다.
A message the problem setter put in. It goes in before the two boxes below, and it cannot be removed. Getting past this instruction is the problem.
Input to preview
This is the exact text that goes into the model (Sample input 1 is used here.)
This problem wraps your text in a chat template, so the exact text can only be shown once the model is loaded. Load SmolLM2 360M first with the button below.
0 chars
To solve problems you need to log in.