Log inSign up
Problems / P55

Date format from three examples

300 ptsrawqwen3-0.6bCases 16max 16 tokensSet by dongbinna
Added October 11.
0 solved1 attempted1 submissions

Statement

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

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

What you submit is not a prompt but three example pairs. The three pairs go in first and the test input is attached after them, so the model simply carries on in the shape it saw in your examples.

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

The trap is padding a single digit with a 0 in front. If all three examples use two-digit months, the model has no way to learn that it has to pad with a 0. But making all three single-digit leaves the two-digit side empty. Think about whether you can show both cases inside the three.

Three example pairs

Qwen3 0.6B

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.