| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156891 | 万麟峰 | 回文字符串I | C++ | Accepted | 1 MS | 280 KB | 261 | 2026-07-11 12:26:30 |
#include<bits/stdc++.h> using namespace std; int main(){ string s1; cin>>s1; int n=0,m=0; while(s1[n]!='\0'){ n++; } for(int i=0;i<n/2;i++){ if(s1[i]!=s1[n-i-1]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }