阅读背景:

PAT 甲级 1076 Forwards on Weibo (30 分) 二刷,广度优先搜索bfs_冰冻三尺非一日之寒

来源:互联网 

Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post on Weibo, all his/her followers can view and forward his/her post, which can then be forwarded again by their followers. Now given a social network, you are supposed to calculate the maximum potential amount of forwards for any specific user, assuming that only L levels of indirect followers are counted.Weibo is known as the Chinese version of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: