RSHIFT.py (146 Bytes)
I am trying to solve the RSHIFT problem link is https://www.spoj.com/problems/RSHIFT/
from sys import stdin,stdout
for _ in range(int(stdin.readline())):
n = int(stdin.readline())
n = n >> 1
this code running perfectly in my ide but gives the wrong answer in spoj. Could anyone spot me what I m doing wrong?