代码:
#includeusing namespace std;#define ll long long#define pb push_backconst int N=1e5+5;const int INF=0x3f3f3f3f;const int MOD=1e9+7;ll a[N];int b[N];int dp[11]={ 1};int main(){ ios::sync_with_stdio(false); cin.tie(0); int n,k; cin>>n>>k; for(int i=0;i >a[i]; for(int i=0;i >b[i]; for(int i=1;i<=k;i++)dp[i]=dp[i-1]*10; ll ans=1; for(int i=0;i