本地题面缓存已迁移,解析内容待补充。
OJ: noi_openjudge
题目 ID: ch0113-20
难度:未知
标签:python
日期: 2026-07-30 23:01
题意
完整题面见同目录的 problem.md。
思路
代码
Python代码
python
from collections import Counter, defaultdict
post_count = int(input())
mentioned_count = Counter()
mentioners = defaultdict(set)
for _ in range(post_count):
sender, count, *mentioned = map(int, input().split())
for person in mentioned[:count]:
mentioned_count[person] += 1
mentioners[person].add(sender)
focus = max(mentioned_count, key=mentioned_count.get)
print(focus)
print(*sorted(mentioners[focus]))