Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
60398 HeW3 J1 C++ Wrong Answer 0 0 MS 292 KB 310 2022-10-15 11:29:47

Tests(0/10):


#include<stdio.h> #include<string.h> using namespace std; int main(){ int t; scanf("%d",&t); char a[100000]={},b[20]={}; scanf("%s",a); scanf("%s",b); for(int i=0;a[i];i+=strlen(b)) for(int j=0;j<strlen(b);++j) if(a[i+j]!=b[j]){ printf("NO"); return 0; } printf("YES"); }


Judgement Protocol: