Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sumxor(N):
- ans=0
- for i in range(N):
- if((N^i)==(N+i)):
- ans+=1
- return ans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement