Zxx20120715 @ 2025-01-11 18:18:47
掉蓝以后感觉都退了一大步呢QAQ
Code:
#include<bits/stdc++.h>//35pts
using namespace std;
int n,m;
int a[150],b[150][150],k[150];
int main(){
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i];
cin>>m;
int sum=m;
for(int i=1;i<=m;i++){
cin>>k[i];
for(int j=1;j<=k[i];j++){
cin>>b[i][j];
for(int r=1;r<=n;r++){
if(b[i][j]==a[r]){
sum--;
break;
}
}
}
}
cout<<sum;
return 0;
}
by be_the_person @ 2025-01-11 18:37:37
@Zxx20120715 晋级的我不会做?你可以看看题解