Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
两次位运算#include <cstdio> int main() { int R,X,Y; scanf("%x,%d,%d",&R,&X,&Y); R &= ~(((1<<(Y-X-2))+1)<<X); R |= 3<<(Y-1); printf("%x\n", R); return(0); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator