AND, OR and square sum

Problem Name:
AND, OR and square sum
Site:CodeForces
Links:
Tags:
Problem setters: