Problem : 2567 ( 寻梦 ) Judge Status : Accepted
RunId : 5936385 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5936385 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 int cas,len; 6 char ch; 7 char str1[55],str2[55]; 8 scanf("%d",&cas); 9 while (cas--) 10 { 11 scanf("%s%s",str1,str2); 12 len=strlen(str1); 13 len>>=1; 14 ch=str1[len]; 15 str1[len]='\0'; 16 printf("%s%s%c%s\n",str1,str2,ch,str1+len+1); 17 } 18 return 0; 19 }