| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77471 | sh25_wangtaojie | 验证子串 | Python3 | 编译错误 | 0 MS | 0 KB | 534 | 2025-12-26 14:12:17 |
#include <iostream> #include <string> bool isSubstring(const std::string& s1, const std::string& s2) { return s1.find(s2) != std::string::npos; } int main() { std::string s1, s2; std::cin >> s1 >> s2; if (isSubstring(s1, s2)) { std::cout << s1 << " is substring of " << s2 << std::endl; } else if (isSubstring(s2, s1)) { std::cout << s2 << " is substring of " << s1 << std::endl; } else { std::cout << "No substring" << std::endl; } return 0; }