Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112996 | 刘佳宇 | 31回文字符串 | C++ | Accepted | 1 MS | 280 KB | 297 | 2025-03-15 10:30:37 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int len=s.size(); bool flag=true; for(int i=0;i<=len/2;i++){ if(s[i]!=s[len-1-i]){ flag=false; break; } } if(flag==true){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }