Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstring>#include <cstdlib>#include <iostream>#include <algorithm>#include <climits>using namespace std;const int maxn = 110;int t;char input[maxn], ans[maxn], tempAns[maxn],data[maxn][maxn], tempData[maxn][maxn];bool used[10], notZero[26];int inputLen, maxNumLen, maxNumNum,len[maxn],letter[26],op[maxn];bool flag[26];int cnt[26];int use[26];void fillAns() {int number = 0;for (; number < 10; ++number) if (!used[number]) {break;}int i = 0, j = 0;for (; i < inputLen; ++i) {if (input[i] == '+' || input[i] == '=') tempAns[j++] = input[i];else if (letter[input[i] - 'A'] > -1) tempAns[j++] = '0' + letter[input[i] - 'A'];else {if (notZero[input[i] - 'A'] && number == 0) {int nn = number + 1;