
public class _477TotalHammingDistance {
    public int totalHammingDistance(int[] nums) {
        int total = 0;
        int l = nums.length;
        for (int i = 0; i < 32; i++) {
        	int count = 0;
        	int bit = 1 << i;
        	for (int j = 0; j < l; j++) count += (bit & nums[j]) == 0 ? 0 : 1;
        	total += count * (l - count);
        }
        return total;
    }
}

@@ -203,35 +203,8 @@
  0;%0A
-        %09int bit = 1 %3C%3C i;%0A
     
@@ -250,33 +250,23 @@
 += (
-bit & 
 nums%5Bj%5D
-) == 0 ? 0 :
+ %3E%3E i) &
  1;%0A

Revise 477