Editorial for Rotate the Integer
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
t = int(input())
for i in range(1,t+1):
N = int(input())
msb = N >> 7
N &= (1<<7)-1
N = N<<1
N |= msb
print(f'Case #{i}: {N}')
Comments