| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159386 | 汪明轩 | 31回文字符串II | C++ | Runtime Error | 1 MS | 280 KB | 444 | 2026-08-29 14:13:54 |
#include <iostream> #include <cstring> using namespace std; int main() { char s[1010]; cin>>s; int len=strlen(s); bool ok=false; for(int i=0;i<len;i++) { if(i+1<len&&s[i]==s[i+1]) { ok=true; break; } if(i+2<len&&s[i]==s[i+2]) { ok=true; break; } } cout<<(ok?"Yes":"No")<<endl; return 0; }
*** stack smashing detected ***: ./Main terminated