Number Sequence Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27028 Accepted Submission(s): 11408 Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1],…
using namespace std; #include <cstdio> #include <cstring> #include <algorithm> #define N 1000010 int n,m; char a[N],b[N]; int nxt[N],ex[N]; int main(){ scanf("%s%s",a,b); n=strlen(a),m=strlen(b); nxt[0]=n; nxt[1]=0; while (1+nx…