#include #include #include #include using namespace std; struct PIC{ int s; string tag; PIC(int _s,string _tag){ s=_s; tag=_tag; } }; bool Comp(PIC &l,PIC &r){ if (l.s>r.s){ return true; }else if (l.s==r.s){ if (l.tag.compare(r.tag)<0){ return true; } } return false; } int main(int argc, char* argv[]) { int N; cin>>N; int No; vector myPIC; int i; int M,S; for (i=0;i>No; cin>>M>>S; for (int j=0;j>t; bool bFound=false; for (int k=0;k