| ||||||||||
| 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<stdio.h>
int main()
{
unsigned int ival;
int bit_0;
int bit_110;
while( scanf( "%x,%d,%d", &ival, &bit_0, &bit_110 ) == 3 ){
ival &= ~(0x1<<bit_0);
ival |= 0x3<<(bit_110-1);
ival &= ~(0x1<<(bit_110-2));
printf( "%x\n", ival );
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator