QOJ.ac

QOJ

时间限制: 1.0 s 内存限制: 256 MB 总分: 100

#9767. Connection

统计

Connections is a word categorization game. You are given 16 Chinese words, and your task is to divide them into 4 groups, each containing 4 words, with each word appearing exactly once. The words within each group must share a strong association, and this association must be stronger than just being "two-character verbs."

An example is provided below:

Word List:

| :---: | :---: | :---: | :---: | | A.一半 | B.一角 | C.嘴角 | D.干冰 | | E.室女 | F.抵抗 | G.未知 | H.军车 | | I.吕方 | J.出山 | K.生辰 | L.乘法 | | M.道头 | N.交叉 | O.楼房 | P.关闭 |

In this example, the four groups are:

  1. The first character is two of the second character: 一半, 出山, 吕方, 道头
  2. Adding a "日" (sun) character to the first character forms a new word: 生辰, 干冰, 军车, 一角
  3. Each character contains one of the Twenty-Eight Mansions: 室女, 嘴角, 楼房, 抵抗
  4. Symbols for X: 乘法, 交叉, 未知, 关闭

Therefore, you can output:

AJIM KDHB ECOF LNGP

as the answer.

Now that you have learned the basic rules of Connections, it is time to try the challenge!

Word List:

| :---: | :---: | :---: | :---: | | A.马蹄 | B.上下 | C.酒吧 | D.向量 | | E.武陵 | F.组词 | G.气体 | H.白丁 | | I.退却 | J.雨点 | K.时期 | L.毛笔 | | M.数轴 | N.衣摆 | O.沉淀 | P.朝夕 |

Please find the best way to divide these words into four groups based on these words.

Output 4 lines, each containing 4 characters representing the indices of the words in the corresponding group.

You may use uppercase or lowercase letters, you may include spaces or no spaces, and you may output in any order.

Please note that the example input and output are only for illustrating the possible format. Submitting the same result will not be accepted.

Examples

Input 1

(no input)

Output 1

ABCD
EFGH
IJKL
MNOP

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.