Educational Codeforces Round 68 (Rated for Div. 2) C-From S To T

https://codeforc.es/contest/1194/problem/C
我是个傻子,被死死的卡在测试2,没考虑s和t本来就相等的情况

#include
using namespace std;
typedef long long ll;
const int N=100000+5;
int a[27],b[27];
int main()
{
    string s,t,p;
    int n;
    cin>>n;
    while(n--)
    {   memset(a,0,sizeof(a));
        memset(b,0,sizeof(b));
        cin>>s>>t>>p;
        int j=0;
        int x=t.length();
        for(int i=0;j

你可能感兴趣的:(Educational Codeforces Round 68 (Rated for Div. 2) C-From S To T)