As a ZJUTer, you must need to know that there was a programming team called "Philharmonic" in ZJUT ACM-ICPC history. But why their team named "Philharmonic"? Today, I, MatRush, will tell you the secret.
As a music fan, xpycc usually love to listen the different kinds of classical music such as symphony and opera. To share his interest with others, he choose the name "Philharmonic" (adj.喜爱音乐的; n.爱乐乐团). Owing to his interest, I made this problem to help him to find his favourtie music.
Overall there are m singers in music history. Each singer has a personal identifier — an interger from 1 to m (distinct singers have distinct identifiers). As far as I know, xpycc has k favorite singers. He listened the music segments from Internet and wrote the following information for every music: the music title, the number of singers who sang in it, and the identifiers of these singers. Besides, he managed to copy the music titles and how many singers sang there, but he didn't manage to write down the identifiers of some singers. xpycc looks at his records and wonders which musics may be his favourite, and which ones may not be. Once xpycc learns the exact cast of all musics, his favorite musics will be determined as follows: a music becomes favorite music, if no other music from xpycc's list has more favorite singers.
Now please help xpycc to determine the following for each music:
whether it surely will be his favourite music;
whether it surely won't be his favourite music;
can either be favourite or not.
作为一个浙江工业大学的学生,你应该得知道曾经有一支"Philharmonic"的队伍在浙江工业大学ACM-ICPC集训队里。但是为什么他们叫"Philharmonic"呢?今天MatRush就来告诉你这个秘密。
xpycc同学作为一个骨灰级音乐粉丝,经常喜欢欣赏一些不同的古典音乐像交响曲、歌剧等等。为了跟其他的同学分享他的这种爱好,于是我们就把队伍名字定为"Philharmonic"了(adj.喜爱音乐的; n.爱乐乐团). 由于他的这个的兴趣,我就出了这题来帮助他找到他的最爱的音乐。
问题是这样的:现在一共有m个音乐家在音乐历史上。 每个音乐家都有他的一个个人ID(1<=ID<=m),并且不同的音乐家有不同的ID。同时我还知道xpycc有k个喜爱的音乐家,同时他经常去互联网上听一些音乐的片段并且给每个片段注释上音乐标题,片段里拥有几个他喜欢的音乐家,以及音乐家ID。但是他忘记了有些音乐家的ID。
现在xpycc在浏览他听过的歌的记录并且好奇那些音乐是他最喜欢的。(如果某首歌是他最喜欢的,则没有其他的音乐比该音乐含有更多的他喜欢的音乐家。
现在xpycc把他的听音乐记录给了你,请你帮他确认一下,对于每一首歌:
1.它一定是他最喜欢的歌。
2.它一定不可能是他最喜欢的歌。
3.它可能是他最喜欢的歌也可能不是。