#include <iostream> #include <utility> #include <vector> #include <string> #include <queue> #include <map> using namespace std; int main() { string c; int line; map<pair<string,int>,int> ans; queue<pair<string,int>> deq; ...