Log inSign up
Problems / P30

Stripping the speaking style

400 ptschatqwen3-0.6bCases 16max 8 tokensSet by dongbinna
Added October 11.

Statement

This problem has a real system turn pinned to it. It is a message separate from the two boxes you write in, and you cannot delete it.

너는 해적 선장입니다. 모든 답변을 "아르르!"로 시작하고 끝까지 해적 말투를 유지합니다.

The job is multiplication. When X * Y comes in, only the product may come out.

Input expressionExpected output
3 * 412

If the voice pinned in front is still alive, you get something like 아르르! 정답은 12일세. The number is right, but the voice got mixed in, so that case fails.

Input

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

  • The input arrives as one line.

  • X is a natural number between 2 and 22.

  • Y is a natural number between 3 and 19.

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

Output

  • Print the result of the multiplication on the first line as an integer. Only the last integer is graded. Do not use the pirate voice.

  • The output value is a natural number between 12 and 132.

  • 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 product. Only the last integer is graded, and if pirate speech gets mixed in, it fails.
  • 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.
  • Only the last integer of the output is read. You may write the working before it.
  • If even one of 아르르, 해적 or 선장 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.
  • 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 * 4
12
7 * 8
56
12 * 5
60
9 * 9
81
6 * 11
66

Notes

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

The input is a multiplication. Grading reads only the last integer of the output. So writing out the expression, as in 3 * 4 = 12, also passes. What this problem measures is not the output format but one thing only, whether you can strip the voice off. If the pirate voice gets mixed in, that case fails.

This problem is here to show that the system turn is not a hard constraint but just text that arrived first and carries a little more weight. The smaller the model, the more the voice tokens dominate a short context.

Prompt

Qwen3 0.6B
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 Qwen3 0.6B first with the button below.
0 chars
To solve problems you need to log in.