Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118394 | Kevin | 31回文字符串 | C++ | Accepted | 1 MS | 276 KB | 278 | 2025-04-29 16:39:06 |
#include<iostream> #include<cstdio> using namespace std; int main(){ string s; getline(cin,s); int len=s.length(); for(int i=0,c=len-1;i<=len/2;i++,c--){ if(s[i]==s[c]) continue; else { cout<<"No"; return 0; } } cout<<"Yes"; return 0; }