Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156897 刘杨国卿 回文字符串I C++ Runtime Error 1 MS 320 KB 260 2026-07-11 12:28:07

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { string s1,s2,s3,s4; cin>>s1; int n=0,s=0; while(s1[n]!='0'){ n++; } for(int i=0;i<n/2;i++){ if(s1[i]!=s1[n-i-1]){ cout<<"No"; return 0; } } cout<<"yes"; return 0; }


Run Info:

Runtime Error:Segmentation fault