谁能帮我解释下这道ACM题的题意“containing a pair of integers i and j,indicating that person i has heard tree j fall.”“包含一对整数I和J,指的是第I人听到第J棵树倒下”.“Two people hold the same opinion only if they
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/04 01:01:15
![谁能帮我解释下这道ACM题的题意“containing a pair of integers i and j,indicating that person i has heard tree j fall.”“包含一对整数I和J,指的是第I人听到第J棵树倒下”.“Two people hold the same opinion only if they](/uploads/image/z/11822474-2-4.jpg?t=%E8%B0%81%E8%83%BD%E5%B8%AE%E6%88%91%E8%A7%A3%E9%87%8A%E4%B8%8B%E8%BF%99%E9%81%93ACM%E9%A2%98%E7%9A%84%E9%A2%98%E6%84%8F%E2%80%9Ccontaining+a+pair+of+integers+i+and+j%2Cindicating+that+person+i+has+heard+tree+j+fall.%E2%80%9D%E2%80%9C%E5%8C%85%E5%90%AB%E4%B8%80%E5%AF%B9%E6%95%B4%E6%95%B0I%E5%92%8CJ%2C%E6%8C%87%E7%9A%84%E6%98%AF%E7%AC%ACI%E4%BA%BA%E5%90%AC%E5%88%B0%E7%AC%ACJ%E6%A3%B5%E6%A0%91%E5%80%92%E4%B8%8B%E2%80%9D.%E2%80%9CTwo+people+hold+the+same+opinion+only+if+they)
谁能帮我解释下这道ACM题的题意“containing a pair of integers i and j,indicating that person i has heard tree j fall.”“包含一对整数I和J,指的是第I人听到第J棵树倒下”.“Two people hold the same opinion only if they
谁能帮我解释下这道ACM题的题意
“containing a pair of integers i and j,indicating that person i has heard tree j fall.”
“包含一对整数I和J,指的是第I人听到第J棵树倒下”.
“Two people hold the same opinion only if they hear exactly the same set of trees.”
“只有当两个人听到完全相同的两棵树倒下,才能说他们的观点相同”.
如果上述理解无误的话,谁能解释下Sample Input里数据的含义,为什么PERSON 1,2,3各出现两次?(例如“1 2”和“1 3”)
谁能帮我解释下这道ACM题的题意“containing a pair of integers i and j,indicating that person i has heard tree j fall.”“包含一对整数I和J,指的是第I人听到第J棵树倒下”.“Two people hold the same opinion only if they
“Two people hold the same opinion only if they hear exactly the same set of trees. ”
“只有当两个人听到完全相同的两棵树倒下,才能说他们的观点相同”.
这里你理解有误,不是听到完全相同的两颗树,而是听到完全相同的树的集合.比如1听到2,3的声音,2也只听到2,3的声音,那没1和2观点相同.如果2听到2,4或者2,3,4的话他们观点就不同了
一个人可以听到很多树的声音,一颗树的声音也可以被很多人听到.所以会有后面的输入