#includeinline int xchg(unsigned char n)//这种是利用位运算{ char up = n << 4; char low = n >> 4; char a=up+low; return a;}inline int xchg(unsigned char n)//这种是直接利用二进制特性{ char a; a=n%16*16+n/16; return a;}int main(){ unsigned char n; scanf("%d", &n); n=xchg(n); printf("%d\n", n); return 0;}