Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156918 赵奕杰 回文字符串I C++ Runtime Error 2 MS 272 KB 236 2026-07-11 14:36:07

Tests(2/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[100]; int main(){ cin>>a; int len=strlen(a); for(int i=0;i<=len/2;i++){ if(a[i]==a[len-i-1]); else{ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }


Run Info:

Runtime Error:Segmentation fault