@[xcjsb](/user/920435) 盲猜你是WA了??
有多余知识点也算对
by albertting @ 2024-04-19 21:25:24
看不出来,放个我的:
```cpp
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const ll N=2*114514,M=1919810,inf=1e18;
ll n,m,k,x,ans;
ll a[2005][2005],b[2005][2005];
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin>>n>>m;
for(int i=1;i<=n;++i){
for(int j=1;j<=m;++j)
cin>>a[i][j];
sort(a[i]+1,a[i]+m+1);
}
ll ans=0;
for(int i=1;i<=n;++i){
ll len; cin>>len;
for(int j=1;j<=len;++j) cin>>b[i][j];
sort(b[i]+1,b[i]+len+1);
ll pos=1;
for(int j=1;j<=len;++j)
if(a[i][pos]==b[i][j]) ++pos;
if(pos==m+1) ans+=2;
}
cout<<ans;
return 0;
}
```
by The_Elation_Aha @ 2024-04-19 21:29:53
@[albertting](/user/1024213) 我是WA了,但我注意了多余知识点的问题
by xcjsb @ 2024-04-19 21:30:27
@[The_Elation_Aha](/user/998639) 好的,谢谢指点
by xcjsb @ 2024-04-19 21:33:03