#include"stdio.h"
bool fun_1(char ch[])
{
char *p1=ch,*p2=ch;
while(*p2){p2++;}
p2--;
while(p1 { if(*p1!=*p2)return 0; p1++; p2--; } return 1; } int fun_2(int data[],int m,int n) { int temp=0; if(0 { for(;m<=n;m++) temp+=data[m-1]; } else printf("Error!"); return temp; } void main() { char ch[30]; gets(ch); if(fun_1(ch))printf("回文\n"); else printf("不是回文\n"); int data[10],m,n; for(int i=0;i<10;i++) scanf("%d",&data[i]); scanf("%d%d",&m,&n); printf("%d",fun_2(data,m,n)); }