#include<iostream> #include<vector> #include<algorithm> using namespace std; int main(){ vector<vector<int>> ball; int n, m, c; cin >> n >> m >> c; for (int i = 0; i < n; i++) { int num; cin >> num; vector<int> temp; int tmpc; for (int i...