Making Football Teams!!!

There are N football teams and each team has positive number of players. You are given Q queries.


This is a companion discussion topic for the original entry at https://toph.co/p/making-football-teams