#include<stdio.h> #include<string.h> int main(){ char s[40]; char t[40]; gets(t); gets(s); char r[80]; int pos; scanf("%d",&pos); int i=0,j=0; while(s[i]!='\0'&&i<pos) { r[i]=s[i]; i++; } while(t[j]!='\0') { r[i+j]=t[j]; j++; } while(s[i]!='\0') { r[i+j]=s[i]; i++; } r[i+j]='\0'; puts(r); /*int i; for(i=strlen(str)-1;i>=0;i--) { printf("%c",str[i]); } printf("\n"); return 0; */ return 0; } /************************************************************** Problem: 2020 User: admin Language: C Result: Accepted Time:10 ms Memory:1144 kb ****************************************************************/