Rosetta Problems

Popularity of Friends

https://atcoder.jp/contests/awc0137/tasks/awc0137_a