#include #include #include using namespace std; void input() { freopen("symbol.in","r",stdin); freopen("symbol.out","w",stdout); } struct s { int t; char c; }; s a[5]; bool srt(s x, s y) { if(x.t==y.t) return x.c>a[i].t>>a[i].c; } sort(a,a+5,srt); for(int i=0;i<5;i++) { for(int j=0;j