https://www.acmicpc.net/problem/20920 #include #define endl "\n"using namespace std;void CPP_INIT() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);}bool compare(pair n1, pair n2) { if (n1.second == n2.second) { if (n1.first.size() == n2.first.size()) { return n1.first (n2.first.size()); } return n1.second > n2.second;}int main(void) { CPP_INIT(); int input1, input2; string str;..