#include #include #include using namespace std; struct sym { int a; char b; }; sym x[5]; bool comp1(sym a,sym b) { if(a.a!=b.a) return a.a>x[i].a>>x[i].b; } sort(x,x+5,comp1); for(int i=0; i<5; i++) { for(int j=0; j