#include #include int n; char a[1048576], ar[1048576]; char buf[1048576]; void rev_str(char *x) { int i, j; char tmp; for(i=0, j=strlen(x)-1;i