Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109495 | 殷佳雨萱 | 31回文字符串 | C++ | Wrong Answer | 0 MS | 272 KB | 279 | 2025-02-09 11:22:31 |
#include<iostream> #include<cstring> //字符串的头文件 using namespace std; string s; int main(){ cin>>s; int len1 = s.length(); for(int i=0;i<len1/2;i++){ if(s[i]!=s[len1-1]){ cout<<"No"<<endl; return 0; } } cout<<"Yes"<<endl; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
No