#include<iostream> #include<fstream> #include<string> #include<cstring> #include<algorithm> #include<list> #include<map> #include<iterator> #include<ctime> using namespace std; typedef multimap<string,string> multimap_1; typedef multimap_1::value_type PS; typedef multimap_1::const_iterator PSi; typedef istream_iterato..