Log inSign up
Problems / P07

Date format (raw)

200 ptsrawqwen3-0.6bCases 16max 16 tokensSet by dongbinna
Added October 11.
5 solved5 attempted6 submissionssolvers took 1.0 tries on average

Statement

Input arrives in the form 2026년 3월 7일. You have to convert it to YYYY-MM-DD and print that.

Input lineExpected output
2026년 3월 7일2026-03-07

Input

  • The input arrives as one line.

  • The input is between 11 and 13 characters long.

Output

  • Print YYYY-MM-DD on the first line.

  • 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 is 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.
  • The output must match the expected value down to the last character. Only leading and trailing whitespace is ignored.
  • 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
2026년 3월 7일
2026-03-07
2025년 12월 25일
2025-12-25
2024년 1월 1일
2024-01-01
2026년 10월 8일
2026-10-08
2023년 9월 30일
2023-09-30

Notes

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

When the month or the day is a single digit, a 0 has to go in front. This is the spot small models get wrong most often. Think about how to write a good prompt to solve this problem.

Prompt

Qwen3 0.6B
Input to preview
This is the exact text that goes into the model (Sample input 1 is used here.)
2026년 3월 7일
11 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.

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.

#HandleScorePromptEnvironmentSolved
1gayeong082016/1653 charsWebGPU · q429/10/2026
2dongbinna16/1655 charsWebGPU · q415/10/2026
3zuzi996616/1659 charsWebGPU · q415/10/2026
4bampal216/16119 charsWebGPU · q403/11/2026
5dhdbs9616/16173 charsWebGPU · q404/11/2026