#include <iostream> #include<vector> #include<string> using namespace std; #include <string> #define INT_MAX 2147483647 vector<vector<int>> powers(11, vector<int>(2)); bool used[11] = { 0 }; int ans = INT_MAX; void func(vector<vector<int>>& p...