Started on 226th beginner contest of atcoder.jp, a and b finished
This commit is contained in:
32
atcoder/beginner_contests/226/b.cpp
Normal file
32
atcoder/beginner_contests/226/b.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user