Log inSign up
Problems / P19

Name the capital (chat)

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

Statement

A country name comes in. You have to print that country's capital as a single word only.

Input lineExpected output
프랑스파리

This is not something the model does not know. It already knows the names of capitals. The hard part is leaving nothing but that one name.

Input

  • The input arrives as one line.

  • The input is between 2 and 5 characters long.

Output

  • Print the name of the capital as one word on the first line.

  • The answer is written in Korean.

  • The output is between 1 and 5 characters long.

  • Do not add any other characters.

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

Requirements

  • The input is a country name.
  • The output is the name of the capital as one word.
  • 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 expected output for this problem is in Korean. The grader compares your output against Korean text, character for character. Look at the example cases below to see the exact words it expects. Your prompt itself can be written in English.

5 public cases. Judging also uses hidden cases. You have to pass all 16 cases to solve this.

Input
Expected output
프랑스
파리
일본
도쿄
영국
런던
이탈리아
로마
태국
방콕

Notes

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

The assistant will try to write 프랑스의 수도는 파리입니다. The task is to leave it no room for that.

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.