{"trustable":false,"sections":[{"title":"题目描述","value":{"format":"MD","content":"有$n$篇文章与$m$个搜索请求,每个都是如下四种之一:\n+ A:查找包含关键字A的文章。\n+ A`OR`B:查找包含关键字A和B的文章(只要有就可以)\n+ A`AND`B:查找包含关键字A和B的文章(两个都有)\n+ `NOT`A:查找不包括关键字A的文章。\n\n处理搜索请求时要输出证据。前三种需要输出包含关键字的所在行,而最后一种输出整篇文章。\n\n**关键字只由小写字母组成**,忽略大小写和其他。\n\n每行不超过80个字符,不超过1500行。"}},{"title":"输入格式","value":{"format":"MD","content":"首先输入整数$n$,然后跟上$n$篇文章,每篇文章的后面有十个`*`(即`**********`),然后是$m$,跟上$m$个请求,以换行作为分割符。"}},{"title":"输出格式","value":{"format":"MD","content":"对于所有的搜索请求,如果没有查询到,则输出``Sorry, I found nothing.``否则输出证据,证据之间以``----------``隔开,每个查询(包括没有查到的)后加上``\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d``。"}},{"title":"样例输入","value":{"format":"MD","content":"```plaintext\n4\nA manufacturer, importer, or seller of\ndigital media devices may not (1) sell,\nor offer for sale, in interstate commerce,\nor (2) cause to be transported in, or in a\nmanner affecting, interstate commerce,\na digital media device unless the device\nincludes and utilizes standard security\ntechnologies that adhere to the security\nsystem standards.\n**********\nOf course, Lisa did not necessarily\nintend to read his books. She might\nwant the computer only to write her\nmidterm. But Dan knew she came from\na middle-class family and could hardly\nafford the tuition, let alone her reading\nfees. Books might be the only way she\ncould graduate\n**********\nResearch in analysis (i.e., the evaluation\nof the strengths and weaknesses of\ncomputer system) is essential to the\ndevelopment of effective security, both\nfor works protected by copyright law\nand for information in general. Such\nresearch can progress only through the\nopen publication and exchange of\ncomplete scientific results\n**********\nI am very very very happy!\nWhat about you?\n**********\n6\ncomputer\nbooks AND computer\nbooks OR protected\nNOT security\nvery\nslick\n```"}},{"title":"样例输出","value":{"format":"MD","content":"```plaintext\nwant the computer only to write her\n----------\ncomputer system) is essential to the\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nintend to read his books. She might\nwant the computer only to write her\nfees. Books might be the only way she\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nintend to read his books. She might\nfees. Books might be the only way she\n----------\nfor works protected by copyright law\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nOf course, Lisa did not necessarily\nintend to read his books. She might\nwant the computer only to write her\nmidterm. But Dan knew she came from\na middle-class family and could hardly\nafford the tuition, let alone her reading\nfees. Books might be the only way she\ncould graduate\n----------\nI am very very very happy!\nWhat about you?\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nI am very very very happy!\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nSorry, I found nothing.\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n```"}}]}