Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126112 杜洛雨泽 31回文字符串 C++ Wrong Answer 0 MS 276 KB 314 2025-07-16 12:55:13

Tests(0/10):


Code:

#include <bits/stdc++.h> using namespace std; int a[1000]; int main(){ string s; getline(cin, s); int i=s.size()-1; int j=0; while((j<i)&&(s[j]==s[i])) { i--; j++; } if(j>=i) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes