Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159694 赵奕杰 31回文字符串 C++ Runtime Error 3 MS 268 KB 214 2026-09-06 14:40:50

Tests(0/10):


Code:

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


Run Info:

Runtime Error:Segmentation fault