CF1105E Helping Hiasat
题目描述
你在某社交网站上面注册了一个新账号,这个账号有$n$($n\leq 10^5$)次记录。要么就是你更改过一次ID,要么就是一个ID为$s$($|s|\leq 40$)的朋友访问过你的空间。
你有$m$($m\leq 40$)个朋友。每一个朋友都会访问你的空间至少一次。如果这一个朋友每一次访问你的空间的时候,你的ID和它的ID一样,那么他就会高兴。
求你最多能让多少人高兴。
输入格式
无
输出格式
无
说明/提示
In the first example, the best way is to change the handle to the "motarack" in the first event and to the "light" in the fourth event. This way, "motarack" and "light" will be happy, but "mike" will not.
In the second example, you can choose either "alice", "bob" or "tanyaromanova" and only that friend will be happy.