Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118959 | 李昊宇 | 31回文字符串 | C++ | Accepted | 1 MS | 280 KB | 227 | 2025-05-11 14:19:33 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; 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; }