#include #include #include using namespace std; int main(){ int T;cin>>T; while(T--){ int a,b,c; map A; vector va; map B; vector vb; map C; vector vc; map temp; cin>>a>>b>>c; for(int i=0;i>t; va.push_back(t); int num;cin>>num; A[t]=num; } for(int i=0;i>t; vb.push_back(t); int num;cin>>num; B[t]=num; } int flag=0; for(int i=0;i>t; vc.push_back(t); int num;cin>>num; C[t]=num; if(num