Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124800 范恒恺 回文字符串I C++ Runtime Error 1 MS 268 KB 273 2025-07-12 15:50:42

Tests(2/10):


Code:

#include<iostream> #include<cstring> char arr[150]; using namespace std; int main() { cin>>arr; int len=strlen(arr); for(int i=0;i<=len/2;i++){ if(arr[i]!=arr [len-1-i]){ cout<<"No"; return 0; }else{ cout<<"Yes"; return 0; } } }


Run Info:

Runtime Error:Segmentation fault