#include using namespace std; struct pr{ string tag; int p; bool operator<(const pr&oth)const{ if(p==oth.p)return tag>oth.tag; return p>n; unordered_mapmp; for(int i=0;i>no>>m>>s; for(int j=0;j>tag; mp[tag]+=s; } } priority_queueq; for(auto&&i:mp)q.push({i.first,i.second}); int i=0; while(i<10&&q.size()){ cout<