| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81707 | 何思佳 | 回文字符串I | C++ | Accepted | 1 MS | 272 KB | 229 | 2024-07-12 15:15:21 |
#include<bits/stdc++.h> using namespace std; char s[1000]; int main() { cin>>s; int len=strlen(s); for(int i=0;i<len/2;i++){ if(s[i]!=s[len-1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }