5 条题解
-
0
#include <iostream> #include <string.h> #include <stdio.h> using namespace std; char a[105]; int main() { cin>>a; int len=strlen(a); bool flag=true; for(int i=0;flag&&i<len;i++) { if(a[i]!=a[len-1-i]) { flag=false; } } if(flag) { cout<<"yes"; } else { cout<<"no"; } return 0; }
信息
- ID
- 1121
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- 递交数
- 47
- 已通过
- 26
- 上传者