Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76345 sh25_wangtaojie 验证子串 C++ 解答错误 0 MS 252 KB 469 2025-12-19 14:40:58

Tests(1/3):


#include <iostream> #include <string> int main() { std::string s1, s2; std::cin >> s1 >> s2; if (s2.find(s1) != std::string::npos) { std::cout << "(" << s1 << ") is substring of (" << s2 << ")" << std::endl; } else if (s1.find(s2) != std::string::npos) { std::cout << "(" << s2 << ") is substring of (" << s1 << ")" << std::endl; } else { std::cout << "No substring" << std::endl; } return 0; }


测评信息: