{"trustable":true,"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 class\u003d\"panel_content\"\u003e哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他需要你的帮助。\u003cbr\u003e\u003cbr\u003e给你一部魔咒词典。当哈利听到一个魔咒时,你的程序必须告诉他那个魔咒的功能;当哈利需要某个功能但不知道该用什么魔咒时,你的程序要替他找到相应的魔咒。如果他要的魔咒不在词典中,就输出“what?”\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"首先列出词典中不超过100000条不同的魔咒词条,每条格式为:\u003cbr\u003e\u003cbr\u003e[魔咒] 对应功能\u003cbr\u003e\u003cbr\u003e其中“魔咒”和“对应功能”分别为长度不超过20和80的字符串,字符串中保证不包含字符“[”和“]”,且“]”和后面的字符串之间有且仅有一个空格。词典最后一行以“@END@”结束,这一行不属于词典中的词条。\u003cbr\u003e词典之后的一行包含正整数N(\u0026lt;\u003d1000),随后是N个测试用例。每个测试用例占一行,或者给出“[魔咒]”,或者给出“对应功能”。"}},{"title":"Output","value":{"format":"HTML","content":"每个测试用例的输出占一行,输出魔咒对应的功能,或者功能对应的魔咒。如果魔咒不在词典中,就输出“what?”"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e[expelliarmus] the disarming charm\r\n[rictusempra] send a jet of silver light to hit the enemy\r\n[tarantallegra] control the movement of one\u0027s legs\r\n[serpensortia] shoot a snake out of the end of one\u0027s wand\r\n[lumos] light the wand\r\n[obliviate] the memory charm\r\n[expecto patronum] send a Patronus to the dementors\r\n[accio] the summoning charm\r\n@END@\r\n4\r\n[lumos]\r\nthe summoning charm\r\n[arha]\r\ntake me to the sky\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003elight the wand\r\naccio\r\nwhat?\r\nwhat?\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}