Log inSign up
Problems / M55

Date format from three examples · SmolLM2 360M

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

Statement

Three input and output pairs are all you get to make it change the shape of a date.

Input dateExpected output
2024년 3월 7일2024-03-07

The trap is padding a single digit with a leading 0. In the case above too, 3월 (the month part) and 7일 (the day part) have to be filled out to 03 and 07. If all three examples use a two digit month, the model has no way to learn that it should pad with 0. But if you make all three single digit, the two digit side is left empty. Think about whether you can show both cases within the three.

Input

  • The input arrives as one line.

  • The input is between 11 and 13 characters long.

Output

  • On the first line print the YYYY-MM-DD form.

  • The output is always 10 characters long.

  • Do not add any other characters.

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

Requirements

  • The input has the form YYYY년 M월 D일.
  • The output has the form YYYY-MM-DD.
  • 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.
  • This problem does not use a prompt. You submit only three input and output pairs.
  • The frame is fixed. The three examples you submit go in as they are, and the test input is attached after them.
  • Your score comes down to nothing but which examples you pick. You fail on the kinds you did not cover.
  • 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 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. You have to pass all 16 cases to solve this.

Input
Expected output
2024년 3월 7일
2024-03-07
2023년 11월 25일
2023-11-25
2025년 1월 9일
2025-01-09
2022년 12월 31일
2022-12-31
2024년 8월 4일
2024-08-04

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.

Three example pairs

SmolLM2 360M

You write no prompt. You submit three examples only. The template is fixed, and the score turns entirely on which examples you pick.

This is the exact text that goes into the model.
입력: 
출력: 

입력: 
출력: 

입력: 
출력: 

입력: <test input>
출력: 
0 chars

All three example pairs have to be filled in before you can grade.

To solve problems you need to log in.