#include #include #include #include using namespace std; struct X{ int No; vector type; X(int no){ No=no; } void Add(string &t){ type.push_back(t); } int HasSushi(string &s){ int i; vector::iterator vit=type.begin(); for (i=0;i>N; int t; string s; vector myVec; for (i=1;i<=N;i++){ cin>>t; if (t==0){ int no,num; cin>>no>>num; X x(no); for (j=0;j>s; x.Add(s); } myVec.push_back(x); sort(myVec.begin(),myVec.end(),Comp); }else if (t==2){ int no; cin>>no; vector::iterator vit1=myVec.begin(); for (j=0;j>s; int No=-1; for (j=0;j