11119

#include <iostream> #include <map> #include <stdio.h> #include <string> #include <string.h> #include <vector> #include <algorithm> using namespace std; map<string,int> cat; map<string,int> an; map<int,string> _cat; map<int,string> _an; vector<string> vb[110]; vector<int> vcat,ancat; int pri_cat[110][110]; int pri_an[110][110]; string s[110]; string S1[110],S2[110]; int Nc,Na,mix; struct msr{ int weight; int pos; }pwr[110]; bool cmp(msr a,msr b) { return a.weight>b.weight; } int