hdu2029
来源:互联网 发布:海豹突击队淘宝有吗 编辑:程序博客网 时间:2024/06/05 15:32
http://acm.hdu.edu.cn/showproblem.php?pid=2029
1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #include<stdlib.h> 5 #include<iostream> 6 using namespace std; 7 8 9 int main()10 {11 //freopen("in.txt","r",stdin);12 int n;13 char s[501];14 15 while(cin>>n)16 {17 while(n--)18 {19 int flag=0;20 scanf("%s",s);21 int len=strlen(s);22 for(int i=0,j=len-1;i<=j;i++,j--)23 {24 if(s[i]!=s[j])25 {26 flag=1;27 break;28 }29 }30 if(flag==0)31 cout<<"yes"<<endl;32 else33 cout<<"no"<<endl;34 }35 }36 return 0;37 }
阅读全文
0 0
- hdu2029
- HDU2029
- hdu2029
- hdu2029 Palindromes _easy version
- HDU2029(回文串水题)
- HDU2029 Palindromes _easy version
- HDU2029 Palindromes _easy version
- Palindromes _easy version(HDU2029)
- HDU2029 Palindromes _easy version
- HDU2029回文字符
- HDU2029:Palindromes _easy version
- hdu2029——Palindromes_easy version
- hdu2029 find your present (2)
- HDU2029 Palindromes _easy version【回文串】【水题】
- hdu2029 Palindromes _easy version(C语言)
- java核心技术I 第三章栗子 + HDU2029 回文
- 基于Dragonboard 410c的camera调试之Android L上的调试
- hdu2026(water~~)
- 【Unity】DateTime各种时间字符串
- 分解质因数
- hdu2027
- hdu2029
- hdu2030
- 防火墙入站规则的设置
- js中this用法详解(2)
- hdu2031
- hdu2032
- hdu2033
- 关于快排与随机化快排
- RecyclerView 瀑布流显示图片