#include<bits/stdc++.h> using namespace std; static bool cmp(string &a, string &b) { int i; for (i = 0; i < a.size() && i < b.size(); i++) { if (a[i] < b[i]) { return true; } else if (a[i] > b[i]) { return false; } } if (a.size() < b.size()) return true; else ret...