Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124786 | 陈华仁星 | 回文字符串I | C++ | Accepted | 1 MS | 200 KB | 284 | 2025-07-12 15:45:27 |
#include <cstdio> #include <cstring> using namespace std; char a[1005]; int main() { char n; int num=0; scanf("%s",a); int len=strlen(a); for(int i=0;i<=len-1;i++) { if(a[i]!=a[len-1-i]) { printf("No"); return 0; } } printf("Yes"); return 0; }