Log inSign up
Problems / P08

Date format (chat)

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

Statement

A date in the form YYYY년 M월 D일 comes in as one line. You have to turn the same date into the form YYYY-MM-DD and print it.

Date that comes inAnswer you have to give
2026년 3월 7일2026-03-07

The conversion itself is easy. Two things trip you up. One is padding a single digit month and day with 0 to two digits. Printing 2026-3-7 fails. The other is that this is chat mode, so the model chips in like an assistant. One word stuck on, as in 2026-03-07 입니다, already differs by a character and fails.

The task is the same as Date format (raw), and only the mode is chat.

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 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.
  • 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.

바꾸는 일 자체는 쉽습니다. 걸리는 자리가 두 군데입니다. 하나는 한 자리 수 월과 일에 0 을 붙여 두 자리로 맞추는 것입니다. 2026-3-7 로 내면 떨어집니다. 다른 하나는 chat 모드라서 모델이 조수처럼 말을 거드는 것입니다. 2026-03-07 입니다 처럼 한 마디가 붙으면 글자가 달라져 떨어집니다.

날짜 형식 (raw) 문제와 과제는 같고, 모드만 chat 입니다.

Prompt

Qwen3 0.6B
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.