Start: Mar, 06, 2018 09:46:00
计算机161 算法分析与设计 第一次实验课作业(吴银杰、张凯庆)
End: Mar, 10, 2018 10:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 5ms
Memory: 1092kB
Author: 2016210401015
In contest: 1141

#include <stdio.h>
#define N 32
int main(void) {
	int T;
	scanf("%d",&T);
	while(T--){
			int m,k,x;
		scanf("%x%d%d",&x,&m,&k);
		printf("%08x\n",(x & ((1<<(N-m))-1)) + (k<<(N-m)));
	}
return 0;
}