Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
87486 sh25_ganzy 验证子串 C++ 通过 0 MS 256 KB 274 2026-04-18 14:08:59

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ char s1[200],s2[200]; cin>>s1>>s2; if(strstr(s1,s2)) cout<<s2<<" is substring of "<<s1; else if(strstr(s2,s1)) cout<<s1<<" is substring of "<<s2; else cout<<"No substring"; return 0; }


测评信息: