#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; /* 25 5 */ bool compare_num(string a, string b) { reverse(a.begin(), a.end()); reverse(b.begin(), b.end()); int n = a.size(); for (int i = 0; i < n; i++) { ...