>>927
>>934修正

for (i = 0; i < len/2; ++i) {
tmp = s[i];
s[i]=s[(len-1)/2+(len-1)%2+i];
s[(len-1)/2+(len-1)%2+i] = tmp;
}