Write code and get it judged (raw) · SmolLM2 360M
Statement
The same task as P49, but in raw mode. With no chat template the model is not an assistant but a machine that continues the text.
| Input | What the model has to produce |
|---|---|
| 배열에서 가장 작은 수를 돌려주는 함수 | JavaScript code that does the job |
The expected value used in grading is not the code but the mark the judge gives it. That is why the expected value in the output spec is always 5.
This one is harder. You cannot instruct it, so you have to get 'code starts here' across with few-shot examples alone, and since it does not know when to stop, it invents another task after the code and keeps writing. If that tail runs long, the judge does not know what it is supposed to evaluate.
Input
The input arrives as one line.
The input is between 15 and 26 characters long.
Output
Print the JavaScript code that does that job on the first line.
The output value is always 5.
Do not add any other characters.
Not a single character may differ from the expected value.
Requirements
- The input is a one line description of the function you have to write.
- The output is JavaScript code that does the job.
- 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 code the model produced is scored out of 5 by the same SmolLM2 360M acting as the judge.
- The prompt the judge uses is fixed and published in full below. You cannot change it.
- If the judge fails to produce a
점수: Nline, parsing fails and that case scores 0. This happens often when the code is long or messy. That is part of the skill too. - The code is not executed. The judge only reads it and decides.
- 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.
- The output has to match the expected value down to the character. Only leading and trailing whitespace is ignored.
- On this problem, passing counts as solved only after someone else's machine produces the same output. The expected output here is always a full score, so the value is public, which means a prompt can pass without running the model at all. The server cannot tell those apart, so reproduction does it instead. Until that is confirmed, only partial credit is counted.
- 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 200 tokens.
- 16 cases × 5 points = 80 points in total. 56 points or more solves it.
Examples
The input data for this problem is in Korean. The expected output is not, so you can write your prompt in English. The example cases below show what the input looks like.
5 public cases. Judging also uses hidden cases. 16 cases × 5 points = 80 points in total. 56 points or more solves it.
배열에서 가장 작은 수를 돌려주는 함수
5
문자열의 길이를 돌려주는 함수
5
두 수를 곱해 돌려주는 함수
5
배열을 오름차순으로 정렬해 돌려주는 함수
5
문자열을 전부 대문자로 바꿔 돌려주는 함수
5
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.
Judge prompt
Fixed, and not editable. The code the model produced goes in the {코드} slot and the task goes in the {과제} slot. The same model runs once more with this prompt to produce a score.
너는 코드 심사위원이다. 아래 과제와 코드를 읽고 점수를 매겨라.
과제: {과제}
코드:
{코드}
채점 기준 (각 1점, 합계 0점에서 5점):
1. 과제가 요구한 일을 한다
2. 문법이 올바른 자바스크립트다
3. 함수로 되어 있고 값을 돌려준다
4. 군더더기 설명이나 군더더기 코드가 없다
5. 흔한 예외 입력에서 깨지지 않는다
반드시 마지막 줄에 아래 형식으로만 적어라. 다른 말은 붙이지 마라.
점수: N
점수: Prompt
SmolLM2 360M배열에서 가장 작은 수를 돌려주는 함수
People who solved this problem
Ties on score are broken by shorter prompt, then by who submitted first. Getting the same result with a shorter prompt is harder.
Prompt text is shown after you solve this problem, and only for the ones their authors made public. For now you see the score, the length, and the environment each person used.
| # | Handle | Score | Prompt | Environment | Solved |
|---|---|---|---|---|---|
| 1 | 2dolgom | 80/80 | 0 chars | WebGPU · q4 | 20/10/2026 |