Log inSign up
Problems / M09

Pack into JSON (raw) · SmolLM2 360M

300 ptsrawsmollm2-360mCases 16max 16 tokensSet by dongbinna
Added October 11.

Statement

Input of the form 이름: 김철수, 나이: 30 comes in. You have to pull out the name and the age and print exactly the form below.

InputAnswer you must give
이름: 김철수, 나이: 30{"name":"김철수","age":30}

There must be no space after the colon or the comma. Wrapping it in a backtick code block counts as a wrong answer. The age is a number with no quotes. The key order is name then age.

There are four places where one character off means failure. The spaces, the code block, the quotes around the age, and the key order. Of those, the first thing the model does is put the spaces in. {"name": "김철수", "age": 30} is the shape that reads well for a person and the shape the model has seen most, but in this problem it is a wrong answer.

Input

  • The input arrives as one line.

  • The input is always 15 characters long.

Output

  • Print one line of compact JSON on the first line.

  • The output is always 23 characters long.

  • Do not add any other characters.

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

Requirements

  • The input is 이름: 홍길동, 나이: 25.
  • The output is one line of JSON with the spaces taken out.
  • This is raw mode. Your two pieces and the input are joined together as they are and fed to the model. No chat template and no <think> is added. Grading looks only as far as the first line.
  • The output must match the expected value down to the last character. Only leading and trailing whitespace is ignored.
  • 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.
  • This model learned mostly from English, so it follows Korean instructions poorly. You may write your prompt in English. Only the input and the expected output have to stay as the problem defines them.
  • 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 16 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

The expected output for this problem is in Korean. The grader compares your output against Korean text, character for character. Look at the example cases below to see the exact words it expects. Your prompt itself can be written in English.

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

Input
Expected output
이름: 김철수, 나이: 30
{"name":"김철수","age":30}
이름: 박영희, 나이: 27
{"name":"박영희","age":27}
이름: 이준호, 나이: 41
{"name":"이준호","age":41}
이름: 최민서, 나이: 19
{"name":"최민서","age":19}
이름: 정다은, 나이: 35
{"name":"정다은","age":35}

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.

Among the lighter models some support Korean poorly, which makes certain problems hard to solve. You may use English in your prompt, so solve it as well as you can.

Prompt

SmolLM2 360M
Input to preview
This is the exact text that goes into the model (Sample input 1 is used here.)
이름: 김철수, 나이: 30
15 chars · edit the boxes above and this text changes with them · raw mode, so the three pieces are joined as they are
0 chars
To solve problems you need to log in.