Question
Problem Statement You will be given a list of 32-bits unsigned integers. You are required to output the list of the unsigned integers you get
Problem Statement
You will be given a list of 32-bits unsigned integers. You are required to output the list of the unsigned integers you get by flipping bits in its binary representation (i.e. unset bits must be set, and set bits must be unset).
Input Format
The first line of the input contains the list size T. T lines follow each line having an integer from the list.
Constraints
1 ? T ? 100
Output Format
Output one line per element from the list with the requested result.
Sample Input
3 2147483647 1 0
Sample Output
2147483648 4294967294 4294967295
Explanation
Take 1 for example, as unsigned 32-bits is 00000000000000000000000000000001 and doing the flipping we get 11111111111111111111111111111110 which in turn is 4294967294
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started