| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70084 | 石茂诤 | 31回文字符串 | C++ | Accepted | 1 MS | 280 KB | 296 | 2024-04-13 16:20:18 |
#include<bits/stdc++.h> using namespace std; bool is(string a){ int len=a.size(); for(int i=1;i<len;i++){ if(a[i]!=a[len-i-1]){ return 0; } } return 1; } int main(){ string a; getline(cin,a); if(is(a)==1) cout<<"Yes"; else cout<<"No"; return 0; }