rt,实在找不到问题出在哪了/dk
#include<bits/stdc++.h>
using namespace std;
int n,q;
unsigned long long ans;
vector<vector<unsigned long long>> a;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cin>>n>>q;
a.resize(n);
for(int i=0;i<n;i++){
int s,x;
cin>>s;
a[i].resize(s);
for(int j=0;j<s;j++){
cin>>x;
a[i][j]=x;
}
}
while(q--){
int x,y;
cin>>x>>y;
ans^=a[x-1][y-1];
}
cout<<ans<<'\n';
}
玄关/kel