Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109494 | 李佳璟 | 31回文字符串 | C++ | Accepted | 0 MS | 272 KB | 243 | 2025-02-09 11:20:36 |
#include<bits/stdc++.h> using namespace std; string s; string b; int main() { cin>>s; int len = s.size(); for(int i=0;i<=len/2;i++){ if(s[i]!=s[len-1-i]) { cout<<"No"; return 0; } } cout<<"Yes"; return 0; }