Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
60421 xit. J1 C++ 通过 100 20 MS 284 KB 318 2022-10-15 11:31:59

Tests(10/10):


#include <bits/stdc++.h> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { string a,b; cin>>a>>b; bool f=1; for(int i=0; i<a.size(); i++) if(a[i]!=b[i%b.size()]) f=0; if(f) printf("YES\n"); else printf("NO\n"); } return 0; }


测评信息: