标签:des style blog io color ar for sp 数据
1 #include <stdio.h> 2 #include <string.h> 3 4 int main(){ 5 int T; 6 char s[51]; 7 int length; 8 char temp; 9 int i; 10 11 scanf("%d",&T); 12 13 while(T--){ 14 scanf("%s",s); 15 length=strlen(s); 16 17 for(i=0;i<length-1;i+=2){ 18 temp=s[i]; 19 s[i]=s[i+1]; 20 s[i+1]=temp; 21 } 22 23 printf("%s\n",s); 24 } 25 26 return 0; 27 }
标签:des style blog io color ar for sp 数据
原文地址:http://www.cnblogs.com/zqxLonely/p/4055053.html