Problem Description

Read n integers, total Hamming distance is sum of distances over all pairs (i

Input Format

First line n. Second line n integers.

Output Format

One integer total.

Sample Test Case

Input:
3 4 14 2
Output:
6

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next