1 solutions
-
0
C :
#include <stdio.h> int main(){ int i; unsigned int a; // freopen("1.txt","r",stdin); while (scanf("%u",&a)==1) { printf("%u\n",(a&(1<<7|1<<4|1<<5|1<<6))>>4); } // fclose(stdin); return 0; }C++ :
#include <stdio.h> int main() { int n; scanf("%d", &n); printf("%d\n", (n >> 4) & ((1 << 4) - 1)); return 0; }
- 1
Information
- ID
- 18083
- Time
- 1000ms
- Memory
- 32MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By