32 lines
443 B
C++
32 lines
443 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
typedef long long ll;
|
|
|
|
int main(){
|
|
ios::sync_with_stdio(0);
|
|
cin.tie(0);
|
|
|
|
int n;
|
|
cin >> n;
|
|
set<vector<ll>> seqs;
|
|
|
|
for(int i = 0; i < n; ++i){
|
|
int l;
|
|
cin >> l;
|
|
|
|
vector<ll> seq(l);
|
|
for(int j = 0; j < l; ++j){
|
|
cin >> seq[j];
|
|
}
|
|
|
|
seqs.insert(seq);
|
|
}
|
|
|
|
cout << seqs.size();
|
|
|
|
cout << flush;
|
|
|
|
return 0;
|
|
} |