Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
66435 | hu | 验证子串 | C++ | Compile Error | 0 MS | 0 KB | 258 | 2025-06-28 23:05:50 |
include<bits/stdc++.h> using namespace std; int main() { char s[200], g[200]; cin>>g>>s; if(strstr(s,g)) cout<<g<<" is substring of "<<s<<endl; else if(strstr(g,s)) cout<<s<<" is substring of "<<g<<endl; else cout<<"No substring"; return 0; }