Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159697 赵奕杰 31回文字符串 C++ Runtime Error 0 MS 264 KB 213 2026-09-06 14:41:16

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