Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155776 李昱龙 31回文字符串 C++ Runtime Error 1 MS 268 KB 237 2026-06-13 14:27:33

Tests(0/10):


Code:

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


Run Info:

Runtime Error:Segmentation fault