{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv\u003e\nZJM 为了准备霍格沃兹的期末考试,决心背魔咒词典,一举拿下咒语翻译题\n\u003cbr /\u003e\n题库格式:[魔咒] 对应功能\n\u003cbr /\u003e\n背完题库后,ZJM 开始刷题,现共有 N 道题,每道题给出一个字符串,可能是 [魔咒],也可能是对应功能\n\u003cbr /\u003e\nZJM 需要识别这个题目给出的是 [魔咒] 还是对应功能,并写出转换的结果,如果在魔咒词典里找不到,输出 \"what?\"\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"首先列出魔咒词典中不超过100000条不同的咒语,每条格式为: \n\u003cbr\u003e \n\u003cbr\u003e[魔咒] 对应功能 \n\u003cbr\u003e \n\u003cbr\u003e其中“魔咒”和“对应功能”分别为长度不超过20和80的字符串,字符串中保证不包含字符“[”和“]”,且“]”和后面的字符串之间有且仅有一个空格。魔咒词典最后一行以“@END@”结束,这一行不属于词典中的词条。 \n\u003cbr\u003e词典之后的一行包含正整数N(\u0026lt;\u003d1000),随后是N个测试用例。每个测试用例占一行,或者给出“[魔咒]”,或者给出“对应功能”。"}},{"title":"Output","value":{"format":"HTML","content":"每个测试用例的输出占一行,输出魔咒对应的功能,或者功能对应的魔咒。如果在词典中查不到,就输出“what?”"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e[expelliarmus] the disarming charm\n[rictusempra] send a jet of silver light to hit the enemy\n[tarantallegra] control the movement of one\u0027s legs\n[serpensortia] shoot a snake out of the end of one\u0027s wand\n[lumos] light the wand\n[obliviate] the memory charm\n[expecto patronum] send a Patronus to the dementors\n[accio] the summoning charm\n@END@\n4\n[lumos]\nthe summoning charm\n[arha]\ntake me to the sky\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003elight the wand\naccio\nwhat?\nwhat?\u003c/pre\u003e"}}]}