给定A数组其中0 <= a[i] <= 9,给定n。可重复使用A中的元素,要求构造小于n的最大数。 #include <bits/stdc++.h> using namespace std; using ll = long long; const int mod = 1e9 + 7; void solve() { int A[] = {9, 8}; int n = 9; n --; map<int, int> mp; for(auto x: A) mp[x] = 1; int a[10], cnt = ...